if ssh port is not port 22

Ted Creedon tcreedon at easystreet.net
Fri Apr 10 06:09:36 EST 2009


I screwed it up - had 2 ssh_conf files...

Works fine

Busy getting my pam stack set up

thanks

ted

On Thu, Apr 9, 2009 at 12:51 PM, Matt Anderson <mra at malloc.org> wrote:

> 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