I’m trying to get ssh running on my vyos router. But everytime i try to connect, i get an connection refused error.
The first problem was i wasn’t able to bind the ssh service to an vif interface. So i have to set
sudo sysctl -w net.ipv4.ip_nonlocal_bind=1
After that i was able to set the address to this interface eth3.1606 and the ssh service was comming up and is listening on this address…
vyos@VyOS-SPOKE-01:~$ netstat -tulpn | grep 22
(No info could be read for “-p”: geteuid()=1003 but you should be root.)
tcp 0 0 10.2.140.1:22 0.0.0.0:* LISTEN -
I think i have to route/forward the incoming traffic in interface eth1.600 to the SSH Daemon or something like this…
Or is there a way in SSH to listen on an interface which is in a diffrent routing table?