Sunday, July 25, 2010

Installing SSH server in Ubuntu

Installing SSH server in Ubuntu

By default, your system will have no SSH service enabled, which means you won't be able to connect to it remotely using SSH protocol (TCP port 22). This means that installing SSH server will be one of the first post-install steps on your system.

The most common SSH implementation is OpenSSH server, and that's exactly what you want to install.

Log in with your standard username and password, and run the following command to install openssh-server. You should be using the same username that you specified when installing Ubuntu, as it will be the only account with sudo privileges to run commands as root:

ubuntu$ sudo su
ubuntu$ sudo apt-get install openssh-server

Verifying your SSH server is installed:
ubuntu$ dpkg --get-selections | grep -i ssh
openssh-server install

Verifying your SSH server works
While you're still on your local desktop session, you can use the ps command to confirm that SSH daemon (sshd) is running:

ubuntu$ ps -aef | grep sshd

No comments: