Archives For ssh

Enable SSH Ubuntu 16.04

Here’s how to enable Secure Shell (SSH) service in Ubuntu 16.04 Xenial Xerus, the new LTS release, to allow secure remote login and other network communications.

Ubuntu provides OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol.

1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:

sudo apt-get install openssh-server

install openssh server

2. After that, you should have SSH service enabled in your system, you may check its status by running command:

sudo service ssh status

check ssh status

3. You may change some settings (e.g., the listening port, and root login permission) by editing the configuration file via command:

sudo nano /etc/ssh/sshd_config

On Ubuntu desktop, you may use gedit instead of nano:

SSH settings

Finally apply the changes by restarting or reloading SSH:

sudo service ssh restart

For more, read the official manual page.

enable ssh ubuntu 14.10

Secure Shell (SSH) is a protocol for securely accessing remote machine, it allows you to run command line and graphical programs, transfer files, and even create secure virtual private networks over the Internet.

Ubuntu does not provide the ssh service out-of-the-box. But you can easily enable it by installing the OpenSSH server package.

To enable SSH:

Search for and install the openssh-server package from Ubuntu Software Center. Or run command below in console if you’re on Ubuntu Server without GUI:

sudo apt-get install openssh-server

Once installed, the SSH service should be started automatically. If necessary, you can start (or stop, restart) the service manually via command:

sudo service ssh start

To edit settings:

To change the port, root login permission, you may edit the /etc/ssh/sshd_config file via:

sudo nano /etc/ssh/sshd_config

After you changed the configurations, press Ctrl+X followed by typing y and hitting enter to save the file.

Finally restart the SSH service to apply the changes:

sudo service ssh restart

Usage and Tips:

1. Normally, we can access remote machine through SSH via command:

ssh username@remote-ip

For the port that is not the default 22:

ssh username@remote-ip -p NUMBER

2. For desktop Ubuntu, root user need to be enabled first so that remote machines can SSH to it via root:

Run command below to set a password for root:

sudo passwd root

Then execute command to unlock the root account:

sudo passwd -u root

Edit the config file /etc/ssh/sshd_config, change the line

PermitRootLogin without-password


PermitRootLogin yes

When done, restart the SSH service.

For more, read the community documents.

enable ssh ubuntu 14.04

This simple tutorial is going to show you how to enable Secure Shell (SSH) service in Ubuntu 14.04 Trusty Tahr.

Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.

SSH is not enabled by default in Ubuntu, but you can easily enable this service via OpenSSH, a free version of the SSH connectivity tools developed by the OpenBSD Project.

To do so, run the command below in terminal:

sudo apt-get install openssh-server

Or install the openssh-server package via Ubuntu Software Center if you’re on Desktop edition:

install ssh server Ubuntu 14.04

Once installed, you can change the port, disable root login and do other changes by editing the config file:

sudo gedit /etc/ssh/sshd_config

Finally restart the ssh server to take place:

sudo /etc/init.d/ssh restart

That’s it. Enjoy!

enable ssh ubuntu 13.10

This simple tutorial shows you how to enable ssh in Ubuntu 13.10 Saucy Salamander. As you may know, SSH (Secure Shell) is a secure communication protocol that lets you remotely access networked computers. It is known as a replacement for Telnet which is very unsecure. While Telnet sends traffic in plain text, SSH on the other hand uses a secure protocol to communicate.

Tutorial Objectives:

  • Enable SSH in Ubuntu 13.10
  • Enjoy!

To get started, install SSH Server openssh-server from Ubuntu Software Center. Or run command below if you’re on Ubuntu Server without GUI:

sudo apt-get install openssh-server

That’s it. Use your client to connect to this machine via the default port 22.

You can change the port as well as disable root login and other settings by editing the config file /etc/ssh/sshd_config via root privilege:

sudo gedit /etc/ssh/sshd_config



SSH service is not enabled by default in Ubuntu both Desktop and Server, but you can easily enable it just by one command. Works on Ubuntu 13.04, 12.04 LTS, 10.04 LTS and all other releases.

And the command is:

sudo apt-get install openssh-server

It installs OpenSSH server, then automatically enable ssh remote access.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

You can edit the config file “/etc/ssh/sshd_config” to change default port 22, remember to apply changes via the command below:

sudo /etc/init.d/ssh restart