Published May 22nd, 2007 by admin
Correct syntax for using SSH and SFTP on irregular ports
This is a little more advanced than the last few topics but I want to appeal to all Ubuntu/Linux users over time and not just beginners…
So without further ado, here is a few ssh syntax tips (this also applies to most versions of Linux):
(replace items in < > with your stuff, without the < >)
SSH:
ssh -p <port number> <username>@<server name>
SSH to accept socks 5 proxy on port you specify:
ssh -p <port number> <username>@<server name> -D <port to watch>
SFTP:
sftp -oPort=<port number> <username>@<server name>
Forward the X server from your remote box:
ssh -X -p <port number> <username>@<remote computer>