Wednesday, October 27, 2010

A Quick Primer to SSH

A quick guide to SSH:

Have you been at work and think "Hey I can do this so much faster with x on my computer at home!" Well, SSH will solve your problem. SSH - Secure SHell - is a protocol for calling a remote system and controlling it via the shell. Designed in 1995, it has been put through the tests of time and now in version 2 it is one of the best ways of remote shell access.


"Wait. I want to use Firefox (or any other graphical program). This only gives me shell"

SSH offers x forwarding, enabling you to use programs with GUI.


"The Internet says that remote control is insecure"

SSH is secured by a public key system with a choice of another symmetric cipher (invoked by -c)


"Ok, it seems cool, how do I use it?"

Setting up the client is easy. For Linux and Mac users this is already built in. For Windows users, there are many clients available such as PuTTY, KiTTY, etc.

Linux/Mac:

0. Make sure that you have an account on a remote system with SSHd running.
1. Open a shell session.
2. Type: ssh user@ip
(replace user with your username on the remote system and ip with remote ip)
3. It will prompt for a password, type it in
4. Use normally, but remember, you are in the remote system.


Windows:

0. Get PuTTY
1. Type in your credentials
2. Login!


For more info, use man ssh

No comments:

Post a Comment