Hi everyone!
I have a strange problem in my opinion. I want to connect my Jetson Nano with NanoPi using usb-usb bridge. I was setting the local wired connection (ip4:10.10.11.1 and mask:255.255.255.0). But I can`t connect via ssh to NanoPi with ip 10.10.11.2. This settings work fine at another desktop linux machine and wsl. I thought that the connection was blocking the firewall as it happens in Windows, but iptables showed that access is not restricted.
SSH-connecting
jetson@jetson-desktop:~$ ssh -vvv root@10.10.11.2
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving “10.10.11.2” port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.10.11.2 [10.10.11.2] port 22.
debug1: connect to address 10.10.11.2 port 22: No route to host
ssh: connect to host 10.10.11.2 port 22: No route to host
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.108 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a258:9ff7:55b0:eaee prefixlen 64 scopeid 0x20
ether 00:04:4b:e6:9d:97 txqueuelen 1000 (Ethernet)
RX packets 35800 bytes 30240007 (30.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24737 bytes 5989062 (5.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 151 base 0x3000lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 1626 bytes 151928 (151.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1626 bytes 151928 (151.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0rndis0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 5a:71:6b:3a:26:b9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.11.1 netmask 255.255.255.0 broadcast 10.10.11.255
inet6 fe80::59a8:56db:97fb:1599 prefixlen 64 scopeid 0x20
ether 52:8e:df:bc:5d:63 txqueuelen 1000 (Ethernet)
RX packets 6 bytes 452 (452.0 B)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 419 bytes 68748 (68.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0usb1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 5a:71:6b:3a:26:bb txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 101 0 0 eth0
10.10.11.0 0.0.0.0 255.255.255.0 U 102 0 0 usb0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 usb0
192.168.0.0 0.0.0.0 255.255.255.0 U 101 0 0 eth0
iptables
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp – anywhere anywhere udp dpt:bootps
ACCEPT tcp – anywhere anywhere tcp dpt:bootps
ACCEPT udp – anywhere anywhere udp dpt:domain
ACCEPT tcp – anywhere anywhere tcp dpt:domain
ACCEPT all – anywhere anywhere ctstate RELATED,ESTABLISHEDChain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all – anywhere 10.10.11.0/24 state RELATED,ESTABLISHED
ACCEPT all – 10.10.11.0/24 anywhere
ACCEPT all – anywhere anywhere
REJECT all – anywhere anywhere reject-with icmp-port-unreachable
REJECT all – anywhere anywhere reject-with icmp-port-unreachable
REJECT all – anywhere anywhere reject-with icmp-port-unreachableChain OUTPUT (policy ACCEPT)
target prot opt source destination
Have anyone got any ideas on how to solve this issue?
Thanks.