running updated hardy, without any special hacks. and i only set one listening
port at a time:
- edit config file and changing the Port directive: Port 22 / Port 22184 /
etc.
- sudo /etc/init.d/ssh restart
- ssh localhost -p portnum
--
openssh-server is unable to receive connections on some
Public bug reported:
very strange problem (bug). when trying to set the listening port for
ssh to 22184 i get:
$ ssh localhost -p 22184
Read from socket failed: Connection reset by peer
but when setting the listening port (on /etc/ssh/sshd_config, of course)
to some other ports (2, 22, 23,
Oops...
It turned out that my regular user (not root) started sshd with that
port number. and since only root allowed to open high ports, the
connection got terminated.
1. why did sshd / ubuntu allowed the regular user to even start the service,
when it's clear no connections will be received?