On Mon, 15 Mar 2010 16:00:16 +0000
Paul Tansom <paul@???> wrote:
> > > > 6) Move sshd to another port.
> >
> > I thought to do that as well but found it wasn't just a matter of
> > changing the port from 22 to summat else in /etc/ssh/sshd_config as
> > I couldn't then ssh in when I tested it from another terminal
> > getting an 'unable to open port 22' error.
> ** end quote [john lewis]
>
> Not wanting to state the obvious, but are you using the -p switch when
> connecting? eg:
>
> ssh -p 26 myhost.mydomain.com
now doing that
> if you've moved to port 26 by adjusting the port line
> in /etc/ssh/sshd_config:
>
> Port 26
>
> to make things more convenient you can create a file in ~/.ssh called
> config to set default settings, so:
>
> Host myhost
> Hostname myhost.mydomain.com
> Port 26
> User john
> IdentityFile ~/.ssh/id_rsa
>
> would allow you to use:
>
> ssh myhost
>
> and automatically use the correct port to get to the server, as well
> as start the login with the user john and appropriate key file.
> Sorry if that's all obvious :)
not obvious to me so very welcome, thanks Paul
--
John Lewis
Debian & the GeneWeb genealogical data server