Eu tenho lutado para habilitar a conexão SSH bidirecional do meu laptop para a área de trabalho e vice-versa.
Há um roteador de rede doméstica e os dois computadores estão conectados a ele com um cabo de LAN.
Eu posso conectar do laptop ao desktop, mas não o contrário.
Estas são as configurações:
Mint 17.3 Rosa (GNU / Linux 3.19.0-32-genérico x86_64), Desktop
branislava@mint:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:21:db:51:4d
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::224:21ff:fedb:514d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32733 errors:0 dropped:0 overruns:0 frame:0
TX packets:16138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18404580 (18.4 MB) TX bytes:1881439 (1.8 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6362 errors:0 dropped:0 overruns:0 frame:0
TX packets:6362 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:561391 (561.3 KB) TX bytes:561391 (561.3 KB)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:172.16.46.1 Bcast:172.16.46.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:192.168.89.1 Bcast:192.168.89.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Ubuntu 16.04 LTS (GNU / Linux 4.4.0-21-genérico x86_64), Laptop
branislava@ubuntu:~$ ifconfig
ens33 Link encap:Ethernet HWaddr 00:0c:29:3c:bc:3b
inet addr:192.168.17.129 Bcast:192.168.17.255 Mask:255.255.255.0
inet6 addr: fe80::4d02:b72:2730:3807/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15856 errors:0 dropped:0 overruns:0 frame:0
TX packets:7172 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9538356 (9.5 MB) TX bytes:990463 (990.4 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6109 errors:0 dropped:0 overruns:0 frame:0
TX packets:6109 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:616225 (616.2 KB) TX bytes:616225 (616.2 KB)
As interfaces / etc / network / são as mesmas nos dois computadores:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
Conexão SSH do computador para o laptop:
branislava@mint ~ $ ssh 192.168.17.129
ssh: connect to host 192.168.17.129 port 22: Connection timed out
Conexão SSH do laptop para a área de trabalho:
branislava@ubuntu:~$ ssh 192.168.0.11
[email protected]'s password:
Welcome to Linux Mint 17.3 Rosa (GNU/Linux 3.19.0-32-generic x86_64)
Welcome to Linux Mint.
Last login: Fri Jul 22 15:39:44 2016 from 192.168.0.13
Resultados de ping:
branislava@mint ~ $ping 192.168.17.129
PING 192.168.17.129 (192.168.17.129) 56(84) bytes of data.
^C
--- 192.168.17.129 ping statistics ---
210 packets transmitted, 0 received, 100% packet loss, time 210671ms
E:
branislava@ubuntu:~$ ping 192.168.0.11
PING 192.168.0.11 (192.168.0.11) 56(84) bytes of data.
64 bytes from 192.168.0.11: icmp_seq=1 ttl=128 time=1.20 ms
64 bytes from 192.168.0.11: icmp_seq=2 ttl=128 time=3.75 ms
64 bytes from 192.168.0.11: icmp_seq=3 ttl=128 time=2.06 ms
64 bytes from 192.168.0.11: icmp_seq=4 ttl=128 time=2.12 ms
64 bytes from 192.168.0.11: icmp_seq=5 ttl=128 time=2.13 ms
64 bytes from 192.168.0.11: icmp_seq=6 ttl=128 time=1.58 ms
64 bytes from 192.168.0.11: icmp_seq=7 ttl=128 time=1.77 ms
64 bytes from 192.168.0.11: icmp_seq=8 ttl=128 time=2.45 ms
...
--- 192.168.0.11 ping statistics ---
115 packets transmitted, 114 received, +1 errors, 0% packet loss, time 114232ms
rtt min/avg/max/mdev = 0.723/9.986/762.520/71.106 ms, pipe 3
Ambos estão conectados à internet.
Alguém tem uma ideia que poderia ser o problema?