I recently installed Secure Shell or SSH on a Debian GNU/Linux PC so that I can configure and connect to it remotely using an SSH client.
I am a newbie on this thing, thanks to Google, I was able to do it easily. Here are the steps:
1. Login as administrator.
2. Add this line to your /etc/apt/sources.list
deb http://pandora.debian.org/debian-non-us woody non-US/main non-US/non-free non-US/contrib
3. Open the Terminal and run
apt-get install ssh
4. Open /etc/ssh/ssh_config and add the following lines:
5. Reload SSH with the following command:
That’s it! SSH is now installed and running on your Debian Linux PC.
Source (Read this source for a more detailed explanation)
Note that these steps only work if you have internet connection.