Trying to use the ListenAddress parameter in my /etc/ssh/sshd_config, but there are some error messages and once setting it, I am locked out. I'm connecting to the box via ssh. I have no physical access.
Before setting ListenAddress, here's the output of
(I omitted irrelevant verbose output from the cmd with ...).
When I set, e.g., ListenAddress 10.0.150.150-
...after setting the ListenAddress param, restarting sshd locks me out. I have no problems connecting before setting this param, despite the error message.
There was one time I set the ListenAddress param and ran
...but the
Here's output of
Before setting ListenAddress, here's the output of
/usr/sbin/sshd -d -f /etc/ssh/sshd_config
with the default /etc/ssh/sshd_config-
Code:
...
Bind to port 22 on :: failed: Address already in use.
debug1: Bind to port 22 on 0.0.0.0.
...
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
(I omitted irrelevant verbose output from the cmd with ...).
When I set, e.g., ListenAddress 10.0.150.150-
/usr/sbin/sshd -d -f /etc/ssh/sshd_config
Code:
...
debug1: Bind to port 22 on 10.0.150.150
...
Bind to port 22 on 10.0.150.150 failed: Can't assign requested address.
Cannot bind any address.
...after setting the ListenAddress param, restarting sshd locks me out. I have no problems connecting before setting this param, despite the error message.
There was one time I set the ListenAddress param and ran
/usr/sbin/sshd -d -f /etc/ssh/sshd_config
and it actually did appear to work, returning-
Code:
...
debug1: Bind to port 22 on 10.0.150.150
...
Server listening on 10.0.150.150 port 22.
...but the
/usr/sbin/sshd -d -f /etc/ssh/sshd_config
actually hung after returning those lines, and re-running the cmd gave the previous error msg.Here's output of
netstat -ln -p tcp
-
Code:
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 36 10.0.50.50 [blocked out by me] ESTABLISHED
sockstat -c
and sockstat -l
show nothing unexpected..