PDA

View Full Version : ssh works from windows laptop but not from other ubuntu desktop



SimbaSpirit
June 21st, 2008, 03:18 AM
ok here's my setup.

I have 2 computers running the most up to date ubuntu (hardy, all updates intact), and a laptop running vista.

I follow the tutorials on the internet about how to ssh from terminal.

ssh username@servername:24 (have it on port 24 because other computer uses 22)

ssh username@192.168.1.99
ssh username@<external ip>

My router is using dd-wrt, and has ports 22 and 24 properly forwarded.

Server 1 can't ssh Server2, or the other way around.
My vista laptop using PuTTY can access both of them.

Am I using the command incorrectly?
To change the ports I edited the "port:" in ssh_config and sshd_config

Thanks,
-SS

Sef
June 22nd, 2008, 12:34 AM
Moved to Server Platforms.

windependence
June 22nd, 2008, 01:31 AM
To ssh on a different port:


ssh -p 24 name@server_or_ip

To start the ssh server on a different port:


sudo /usr/sbin/sshd -p 24

The above will not survive a reboot, you will need to put it in your startup script.

HTH

-Tim