[SWLUG] using ssh to talk to a server?
Daniel Morris
danielm at iee.org
Fri May 2 10:21:14 UTC 2008
On Fri, May 02, 2008 at 10:54:51AM +0100, Mark Summerfield wrote:
> Hi,
>
> I'm trying to do this:
>
> Machine 192.168.1.2 (Fedora 8)
> run a server on port 9876
Whilst you were in /etc/ssh/sshd_config did you disallow Root logins
too? Completely unrelated, but still worth doing IMHO:-
PermitRootLogin no
>
> Machine 192.168.1.3 (Kubuntu 8)
> talk to machine 192.168.1.2's server on port 9876.
>
> Both machines are running sshd.
>
> I've tried using ssh -R and -L but I can't get it to work and I just
> don't understand the ssh man page. Surely this is easy to do?
I use '-p port' for this:-
[from_192_168_1_3]$ ssh -p 9876 192.168.1.2
To do this repeatedly, you can set the "port" option, along with
others in your ~/.ssh/config (on a per machine basis), like:-
Host name_of_server_at_192_168_1_2
Port 9876
Compression no
Protocol 2
Moving sshd off its default port at my outward facing machines saved
me loads of aggro, sifting failed attampts in /var/log/messages from
an astonishing number of dictionary based fake ssh logins!
Daniel
More information about the Swlug
mailing list