F5F Stay Refreshed Software Operating Systems ListenAddress for SSH on Ubuntu not working

ListenAddress for SSH on Ubuntu not working

ListenAddress for SSH on Ubuntu not working

M
MissVoo
Member
64
06-05-2016, 08:13 PM
#1
I'm trying to configure SSH on my Ubuntu system so that only certain IPs can access it. I'm using the ListenAddress setting in the config file for sshd, but each time I attempt to start it, I get an error saying it couldn't bind to the requested address.
M
MissVoo
06-05-2016, 08:13 PM #1

I'm trying to configure SSH on my Ubuntu system so that only certain IPs can access it. I'm using the ListenAddress setting in the config file for sshd, but each time I attempt to start it, I get an error saying it couldn't bind to the requested address.

L
Lil_Shorty
Member
202
06-24-2016, 11:17 PM
#2
You can manage this using iptables. Check the guide here: http://unix.stackexchange.com/questions/...ip-address. For your setup, port knocking is a good approach—your SSH port stays closed while only you know the sequence to unlock it. Search for a port knoking tool online; it should be straightforward to install and set up. This method works well on mobile devices too.
L
Lil_Shorty
06-24-2016, 11:17 PM #2

You can manage this using iptables. Check the guide here: http://unix.stackexchange.com/questions/...ip-address. For your setup, port knocking is a good approach—your SSH port stays closed while only you know the sequence to unlock it. Search for a port knoking tool online; it should be straightforward to install and set up. This method works well on mobile devices too.