if ssh port is not port 22

Matt Anderson mra at malloc.org
Fri Apr 10 05:51:33 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

Sounds like what you want is /etc/ssh/config or ~/.ssh/config to include
something like:
localhost:
	Port 422

-matt


More information about the openssh-unix-dev mailing list