SSH
Connect to a host
To connect to a host do:
$ssh <username>@<host>
Connect to a host with X display forwarding
To connect to a host and forward X do:
$ssh -Y <username>@<host>
Using compression
To use compression add the -C flag:
$ssh -C <username>@<host>
Using secure keys
To create keys to connect to your server in a more secure manner, first create the keys by executing:
$ssh-keygen -t rsa
Add the key to a known location when prompted and enter a secure password.
Now you can copy your public key to the server that is going to receive the connection:
$ssh-copy-id <username>@<host>
Now disable password login by editing /etc/ssh/sshd_config, the restart the sshd service.
Warning
If you lose the key files you will be locked out of the target machine.