ssh for “No route to host” but ping works











up vote
-1
down vote

favorite












Hope ssh access host2 via host1, but ssh return "No route to host", but ping works and iptables return inactive.



[host1 ~] ping 10.158.131.165
PING 10.158.131.165 (10.158.131.165) 56(84) bytes of data.
64 bytes from 10.158.131.165: icmp_seq=1 ttl=58 time=1.69 ms
64 bytes from 10.158.131.165: icmp_seq=2 ttl=58 time=1.68 ms
^C
--- 10.158.131.165 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.684/1.687/1.690/0.003 ms

[host1 ~] telnet 10.158.131.165 22
Trying 10.158.131.165...
telnet: connect to address 10.158.131.165: No route to host
[host1 ~] ssh ssdrive@10.158.131.165
ssh: connect to host 10.158.131.165 port 22: No route to host


Host1:



[host1 ~] ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.166.62.130 netmask 255.255.240.0 broadcast 10.166.63.255
inet6 fe80::f64d:30ff:fe66:a895 prefixlen 64 scopeid 0x20<link>
ether f4:4d:30:66:a8:95 txqueuelen 1000 (Ethernet)
RX packets 3313964 bytes 529261130 (504.7 MiB)
RX errors 0 dropped 233 overruns 0 frame 0
TX packets 1258374 bytes 492612963 (469.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xdf200000-df220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 8 bytes 528 (528.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 528 (528.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host1 ~] route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.166.56.1 0.0.0.0 UG 0 0 0 eno1
10.166.48.0 0.0.0.0 255.255.240.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eno1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)


Host2:



[host2 ~]$ ifconfig
enp3s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.158.131.165 netmask 255.255.240.0 broadcast 10.158.143.255
inet6 fe80::ec4:7aff:fe22:badf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:22:ba:df txqueuelen 1000 (Ethernet)
RX packets 1280614 bytes 140941048 (134.4 MiB)
RX errors 0 dropped 0 overruns 6 frame 0
TX packets 103678 bytes 21628629 (20.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7100000-c711ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 46 bytes 3148 (3.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 3148 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host2 ~]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.158.128.1 0.0.0.0 UG 0 0 0 enp3s0f1
10.158.128.0 0.0.0.0 255.255.240.0 U 0 0 0 enp3s0f1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 enp3s0f1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)









share|improve this question







New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
    – Dirk
    Dec 4 at 15:22










  • Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
    – Peschke
    Dec 4 at 15:23










  • @Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
    – rajen
    Dec 4 at 15:28










  • @Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
    – rajen
    Dec 5 at 2:29

















up vote
-1
down vote

favorite












Hope ssh access host2 via host1, but ssh return "No route to host", but ping works and iptables return inactive.



[host1 ~] ping 10.158.131.165
PING 10.158.131.165 (10.158.131.165) 56(84) bytes of data.
64 bytes from 10.158.131.165: icmp_seq=1 ttl=58 time=1.69 ms
64 bytes from 10.158.131.165: icmp_seq=2 ttl=58 time=1.68 ms
^C
--- 10.158.131.165 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.684/1.687/1.690/0.003 ms

[host1 ~] telnet 10.158.131.165 22
Trying 10.158.131.165...
telnet: connect to address 10.158.131.165: No route to host
[host1 ~] ssh ssdrive@10.158.131.165
ssh: connect to host 10.158.131.165 port 22: No route to host


Host1:



[host1 ~] ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.166.62.130 netmask 255.255.240.0 broadcast 10.166.63.255
inet6 fe80::f64d:30ff:fe66:a895 prefixlen 64 scopeid 0x20<link>
ether f4:4d:30:66:a8:95 txqueuelen 1000 (Ethernet)
RX packets 3313964 bytes 529261130 (504.7 MiB)
RX errors 0 dropped 233 overruns 0 frame 0
TX packets 1258374 bytes 492612963 (469.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xdf200000-df220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 8 bytes 528 (528.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 528 (528.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host1 ~] route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.166.56.1 0.0.0.0 UG 0 0 0 eno1
10.166.48.0 0.0.0.0 255.255.240.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eno1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)


Host2:



[host2 ~]$ ifconfig
enp3s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.158.131.165 netmask 255.255.240.0 broadcast 10.158.143.255
inet6 fe80::ec4:7aff:fe22:badf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:22:ba:df txqueuelen 1000 (Ethernet)
RX packets 1280614 bytes 140941048 (134.4 MiB)
RX errors 0 dropped 0 overruns 6 frame 0
TX packets 103678 bytes 21628629 (20.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7100000-c711ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 46 bytes 3148 (3.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 3148 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host2 ~]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.158.128.1 0.0.0.0 UG 0 0 0 enp3s0f1
10.158.128.0 0.0.0.0 255.255.240.0 U 0 0 0 enp3s0f1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 enp3s0f1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)









share|improve this question







New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
    – Dirk
    Dec 4 at 15:22










  • Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
    – Peschke
    Dec 4 at 15:23










  • @Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
    – rajen
    Dec 4 at 15:28










  • @Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
    – rajen
    Dec 5 at 2:29















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











Hope ssh access host2 via host1, but ssh return "No route to host", but ping works and iptables return inactive.



[host1 ~] ping 10.158.131.165
PING 10.158.131.165 (10.158.131.165) 56(84) bytes of data.
64 bytes from 10.158.131.165: icmp_seq=1 ttl=58 time=1.69 ms
64 bytes from 10.158.131.165: icmp_seq=2 ttl=58 time=1.68 ms
^C
--- 10.158.131.165 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.684/1.687/1.690/0.003 ms

[host1 ~] telnet 10.158.131.165 22
Trying 10.158.131.165...
telnet: connect to address 10.158.131.165: No route to host
[host1 ~] ssh ssdrive@10.158.131.165
ssh: connect to host 10.158.131.165 port 22: No route to host


Host1:



[host1 ~] ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.166.62.130 netmask 255.255.240.0 broadcast 10.166.63.255
inet6 fe80::f64d:30ff:fe66:a895 prefixlen 64 scopeid 0x20<link>
ether f4:4d:30:66:a8:95 txqueuelen 1000 (Ethernet)
RX packets 3313964 bytes 529261130 (504.7 MiB)
RX errors 0 dropped 233 overruns 0 frame 0
TX packets 1258374 bytes 492612963 (469.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xdf200000-df220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 8 bytes 528 (528.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 528 (528.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host1 ~] route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.166.56.1 0.0.0.0 UG 0 0 0 eno1
10.166.48.0 0.0.0.0 255.255.240.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eno1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)


Host2:



[host2 ~]$ ifconfig
enp3s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.158.131.165 netmask 255.255.240.0 broadcast 10.158.143.255
inet6 fe80::ec4:7aff:fe22:badf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:22:ba:df txqueuelen 1000 (Ethernet)
RX packets 1280614 bytes 140941048 (134.4 MiB)
RX errors 0 dropped 0 overruns 6 frame 0
TX packets 103678 bytes 21628629 (20.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7100000-c711ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 46 bytes 3148 (3.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 3148 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host2 ~]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.158.128.1 0.0.0.0 UG 0 0 0 enp3s0f1
10.158.128.0 0.0.0.0 255.255.240.0 U 0 0 0 enp3s0f1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 enp3s0f1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)









share|improve this question







New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Hope ssh access host2 via host1, but ssh return "No route to host", but ping works and iptables return inactive.



[host1 ~] ping 10.158.131.165
PING 10.158.131.165 (10.158.131.165) 56(84) bytes of data.
64 bytes from 10.158.131.165: icmp_seq=1 ttl=58 time=1.69 ms
64 bytes from 10.158.131.165: icmp_seq=2 ttl=58 time=1.68 ms
^C
--- 10.158.131.165 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.684/1.687/1.690/0.003 ms

[host1 ~] telnet 10.158.131.165 22
Trying 10.158.131.165...
telnet: connect to address 10.158.131.165: No route to host
[host1 ~] ssh ssdrive@10.158.131.165
ssh: connect to host 10.158.131.165 port 22: No route to host


Host1:



[host1 ~] ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.166.62.130 netmask 255.255.240.0 broadcast 10.166.63.255
inet6 fe80::f64d:30ff:fe66:a895 prefixlen 64 scopeid 0x20<link>
ether f4:4d:30:66:a8:95 txqueuelen 1000 (Ethernet)
RX packets 3313964 bytes 529261130 (504.7 MiB)
RX errors 0 dropped 233 overruns 0 frame 0
TX packets 1258374 bytes 492612963 (469.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xdf200000-df220000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 8 bytes 528 (528.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 528 (528.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host1 ~] route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.166.56.1 0.0.0.0 UG 0 0 0 eno1
10.166.48.0 0.0.0.0 255.255.240.0 U 0 0 0 eno1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eno1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)


Host2:



[host2 ~]$ ifconfig
enp3s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.158.131.165 netmask 255.255.240.0 broadcast 10.158.143.255
inet6 fe80::ec4:7aff:fe22:badf prefixlen 64 scopeid 0x20<link>
ether 0c:c4:7a:22:ba:df txqueuelen 1000 (Ethernet)
RX packets 1280614 bytes 140941048 (134.4 MiB)
RX errors 0 dropped 0 overruns 6 frame 0
TX packets 103678 bytes 21628629 (20.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xc7100000-c711ffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 46 bytes 3148 (3.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 3148 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[host2 ~]$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.158.128.1 0.0.0.0 UG 0 0 0 enp3s0f1
10.158.128.0 0.0.0.0 255.255.240.0 U 0 0 0 enp3s0f1
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 enp3s0f1

# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; enabled; vendor preset: disabled)
Active: inactive (dead)






ssh






share|improve this question







New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 4 at 15:11









rajen

1




1




New contributor




rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






rajen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
    – Dirk
    Dec 4 at 15:22










  • Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
    – Peschke
    Dec 4 at 15:23










  • @Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
    – rajen
    Dec 4 at 15:28










  • @Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
    – rajen
    Dec 5 at 2:29




















  • Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
    – Dirk
    Dec 4 at 15:22










  • Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
    – Peschke
    Dec 4 at 15:23










  • @Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
    – rajen
    Dec 4 at 15:28










  • @Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
    – rajen
    Dec 5 at 2:29


















Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
– Dirk
Dec 4 at 15:22




Why is your routing table showing a normal (10.x.x.x) and APIPA (169.243.x.x) routing. How do you set the hosts' IP address? DHCP or static?
– Dirk
Dec 4 at 15:22












Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
– Peschke
Dec 4 at 15:23




Can you run ssh -vvv ssdrive@10.158.131.165 and add the output to your question?
– Peschke
Dec 4 at 15:23












@Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
– rajen
Dec 4 at 15:28




@Dirk ip is got by DHCP and I don’t know why a APIPA because not familiar with network
– rajen
Dec 4 at 15:28












@Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
– rajen
Dec 5 at 2:29






@Peschke [host1 ~]$ ssh -vvv ssdrive@10.158.131.165 OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 56: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.158.131.165 [10.158.131.165] port 22. debug1: connect to address 10.158.131.165 port 22: No route to host ssh: connect to host 10.158.131.165 port 22: No route to host
– rajen
Dec 5 at 2:29

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






rajen is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485912%2fssh-for-no-route-to-host-but-ping-works%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








rajen is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















rajen is a new contributor. Be nice, and check out our Code of Conduct.













rajen is a new contributor. Be nice, and check out our Code of Conduct.












rajen is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f485912%2fssh-for-no-route-to-host-but-ping-works%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt