Linux Reality Episode 37 - SSH Extra Notes Standard SSH command: ssh user@hostname examples: ssh workstation (using same user name) ssh joe@workstation (using different user name) ssh joe@192.168.1.50 (using ip address) ssh joe@example.com (using domain name if server is off-site or over the internet) if using a nonstandard port, add "-p " switch, e.g. ssh -p 11000 joe@workstation Standard SCP command: scp localfile.txt joe@workstation:/home/joe/localfile.txt or scp localfile.txt joe@workstation:~/localfile.txt can also do the reverse to pull a file down from a server: scp joe@workstation:~/localfile.txt localfile.txt if using a nonstandard port, add "-P " switch, e.g. scp -P 11000 localfile.txt joe@workstation:~/localfile.txt Standard ssh-keygen command: ssh-keygen -t dsa or ssh-keygen -t rsa When prompted for a password during key creation, enter none (press 'enter' key) so you can use password-less key Copy your public key to server. One way is with scp: scp ~/.ssh/id_rsa.pub joe@workstation:~/id_rsa.pub Once copied, ssh back into the machine and copy the public key into the ~/.ssh/authorized_keys file on the server: ssh joe@workstation cat id_rsa.pub >> ~/.ssh/authorized_keys Dynamic Port Forwarding to create a SOCKS web proxy: ssh joe@workstation -D 8080 Then, change your proxy settings in Firefox to "localhost" under "SOCKS host" and put 8080 as the port Updated: Mon Oct 23 21:58:41 EDT 2006