You are not logged in.

#1 2016-01-25 20:00:37

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

SHH refused to receive incoming queries [SOLVED]

I have this openssh old problem. I am able to ssh to another machines but I cannot access my machine from another one.

If I do a ping from another machine, I receive "Destination Host Unreachable".

From the faulty machine, this is my ip link (I am using automatic dhcp to connect to internet):

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 1c:87:2c:b2:0a:3b brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether d0:53:49:83:a4:c0 brd ff:ff:ff:ff:ff:ff

I have verified that the sshd demon is up, so this should not be the problem.

Last edited by Thorvald (2016-01-25 22:38:29)

Offline

#2 2016-01-25 20:10:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SHH refused to receive incoming queries [SOLVED]

More information needed: is the target machine on the same LAN, or are you trying to connect over the Internet? What is in the journal/dmesg of the target machine after a connection attempt? Also, paste the output of a connection attempt with the verbose flags (-vvv).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-01-25 21:50:07

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: SHH refused to receive incoming queries [SOLVED]

Ok, please tell me exactly which command should I execute and what output should I provide (I'm pretty new at this).

I guess they are in the same LAN, because both machines are in the IP XXX.XXX.XX.yy (yy is the ip-termination and is different for both of my machines,
while the XXX.. part is the same for both of them.

For instance, I have followed this post https://bbs.archlinux.org/viewtopic.php?id=165720, but It doesn't work yet.

Last edited by Thorvald (2016-01-25 21:52:04)

Offline

#4 2016-01-25 21:56:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SHH refused to receive incoming queries [SOLVED]

Is sshd running on the target? systemctl status will tell you. Also tail dmesg on the target while you are trying to connect.

Paste the output of `ssh -vvv user@target` with any sensitive information redacted.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-01-25 22:14:31

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: SHH refused to receive incoming queries [SOLVED]

Ok, here's what I have

$ systemctl status | grep sshd
           │ ├─sshd.service
           │ │ └─3502 /usr/bin/sshd -D
                 └─3504 grep sshd
$ ssh -vvv usr@XXX.XXX.XX.y
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to  XXX.XXX.XX.y[XXX.XXX.XX.y] port 22.
debug1: connect to address XXX.XXX.XX.y port 22: No route to host
ssh: connect to host XXX.XXX.XX.y port 22: No route to host

Offline

#6 2016-01-25 22:38:11

Thorvald
Banned
Registered: 2015-10-27
Posts: 59

Re: SHH refused to receive incoming queries [SOLVED]

I had the wrong IP because all the automatic dhcp from my institute go out to the direction XXX.XXX.XX.yy,
but my internal ip is another one. Stupid deatil.

Offline

Board footer

Powered by FluxBB