if ssh port is not port 22

Jeff Blaine jblaine at kickflop.net
Fri Apr 10 05:17:09 EST 2009


Ted Creedon wrote:
> If Port is set to 422 in /etc/ssh/ssh_config, ssh client still tries to use
> port 22. ssh -p 422 localhost does work however becasue Port is set to 422
> in sshd_config
> 
> geronimo:/data/openssh-5.2p1 # ssh -vvv localhost
> OpenSSH_5.2p1, OpenSSL 0.9.8e 23 Feb 2007
> debug1: Reading configuration data /etc//ssh_config
                                       ^^^^^^^^^

Error

> debug3: RNG is ready, skipping seeding
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to localhost [127.0.0.1] port 22.
> debug1: connect to address 127.0.0.1 port 22: Connection refused
> debug1: Connecting to localhost [::1] port 22.
> debug1: connect to address ::1 port 22: Connection refused
> ssh: connect to host localhost port 22: Connection refused
> geronimo:/data/openssh-5.2p1 #
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
> 


More information about the openssh-unix-dev mailing list