On Sunday 08 November 2009 07:48:36 Rodney Baker wrote:
On Sat, 7 Nov 2009 09:25:41 Bob Williams wrote:
[...] 21:08 barrowhillfarm:~> ssh bob@192.168.1.12 ssh: connect to host 192.168.1.12 port nnnn: Connection timed out
The desktop machine is configured to use a high numbered port nnnn rather than 22 as I was getting a lot of unwanted login attempts on port 22. However, I'm assuming that an ssh request from desktop to headless will try port 22 on the headless server.
Bob,
You can specify the port number to connect to on the ssh command line using the -p switch. For example, to connect to my father's machine behind his NAT firewall from my local network I use:
ssh -p <portnum> user@remoteserver.domain
Thanks Rodney. I've finally got there, once I'd cut a hole in my firewall!! Because of setting my internet facing machine's port number to a non-standard one, I do have to specify port 22 for this particular connection, but I've added Host hostname Port 22 to ~/.ssh/config so now I don't have to remember to specify it each time. In your case, you would add Host remoteserver.domain Port <portnum> and then you could login to his machine with ssh user@remoteserver.domain Regards Bob -- Registered Linux User #463880 FSFE Member #1300 GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E openSUSE 11.1, Kernel 2.6.27.37-0.1-default, KDE 4.3 Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org