You are not logged in.
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:ffI 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
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).
Offline
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
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.
Offline
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 hostOffline
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