Linux: SSH connection in Ubuntu

2012-09-19 Linux

In this article we won't talk about what is Secure Shell – we'll just focus on how to use this protocol in Ubuntu. By default Ubuntu is unable to manage SSH connections because it's not installed. To be able to connect with remote machine we have to install OpenSSH Server on our local machine. Open terminal type the following command:

sudo apt-get install openssh-server

From now on you just have to know username and remote host name or IP address to me able to connect, e.g.:

ssh -l slick

If we're connecting for the first time, we'll have to accept ECDSA key. After that machine will be added to known hosts. The next prompt will be about password:

[email protected]'s password:

After successful authorization we'll be connected on remote machine:

[email protected]:~$

While using default Ubuntu configuration there should be no problems with access through standard port number 22.

Do NOT follow this link or you will be banned from the site!