Posts tagged with port

Gnome-RDP and SSH Using an Alternate Port Number

December 14th, 2008

I’ve been trying out Gnome-RDP to connect to the Windows Server 2003 at work allowing me to work remotely. Gnome-RDP is actually just a convenient front end to either RDP (using rdesktop in the background), VNC or SSH but it’s a very useful tool to save all your settings in one place.

One problem I found was that I use an alternate port for my SSH server instead of the default port 22 but I couldn’t see an option to use this port in the Gnome-RDP interface..

It turns out that in the field called ‘Computer’ you can also add the port number just as you would using the terminal, so for port 6000 just use 192.168.1.1 -p 6000 where 192…. is your servers IP address.

Gnome_RDP interface

Rsync Over SSH Using Alternate Port and Private Key

June 1st, 2008

A previous post described how to set up a public/private key to log in to my disk station without a password and using an alternate port i.e. not port 22.

One of the consequences of this is that rsync no longer works without a few tweaks since by default it works over port 22 and expects a password.
To fix this just use the command below and rsync will work without interaction (assuming the key passphrase was left empty).

#  rsync -au -e 'ssh -p 99 -i /home/username/.ssh/id_rsa' /path/to/source HOST:/path/to/destination

Just replace -p 99 with your SSH port and /home/username/.ssh/id_rsa with the location of you private key.