0

I'm not good with networking and maybe I'm using a wrong wording but I cannot find an answer. I'm using Ubuntu Desktop and I'd like to receive my ssh traffic via one of my connections and all ther rest of my traffic via some other connection. How can I achieve this?

  • 2
    Did you mean, you have two NICs and you want to use one for only SSH traffic and the other one for all other traffic? – heemayl Feb 9 '15 at 12:05
  • Your NICs will be listening on two different addresses. The SSH server can be made to listen on one of these addresses only. Is that what you mean? – Jos Feb 9 '15 at 12:46
  • Strictly speaking in my case one of the connections is wi-fi and one is ethernet. – Kalmar Feb 9 '15 at 15:51
  • But I expect if I had two NICs it would be more or less the same. – Kalmar Feb 9 '15 at 16:00
  • 1
    @Kalmar: Ethernet and Wifi are two different NICs. – David Foerster Feb 9 '15 at 21:12
1

Please read sshd_config what formats of ListenAddress are supported.

You should specify the IP of your Ethernet card, I assume it is fixed (otherwise you'll have a lot of hoops to jump through).

To isolate traffic from the WiFi I would suggest to use a firewall (e.g. ufw) and disable incoming connections on port 22.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.