Sunday, January 23, 2011

Enable SSH in Ubuntu

SSH (Secure SHell) is a protocol for securely accessing one computer from another. The most popular Linux SSH client and server are maintained by the OpenSSH project.

You need to install openssh-server package on your server machine. You can use your favorite package manager for installation. (Software Center, Synaptic or apt-get)

sudo apt-get install openssh-server

It listens to port 22 by default. Once installed, it is ready to use. No need for any further configuration. Still, if you want to tweak some settings, you need to look under /etc/ssh/sshd_config.

OpenSSH client is included by default in Ubuntu. To connect to the OpenSSH server, from Terminal:

ssh username@ipaddress

Enter the password for that user/machine and you will be controlling the other machine. In order to end the session, just type exit in the Terminal.

If you want to control Ubuntu SSH server machine from Windows, you need to install PuTTY on the Windows machine.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Enjoy!

Related Posts:

Network , Server