How to Set up Ssh on Ubuntu?
Contents

Enabling SSH on Ubuntu

  • Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon and install the openssh-server package by typing: sudo apt updatesudo apt install openssh-server.
  • Once the installation is completed, the SSH service will start automatically.

How do I enable SSH on Ubuntu?

Enable SSH in Ubuntu 14.10 Server / Desktop

  1. To enable SSH: Search for and install the openssh-server package from Ubuntu Software Center.
  2. 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.
  3. Usage and Tips:

How do I enable SSH?

Enable root login over SSH:

  • As root, edit the sshd_config file in /etc/ssh/sshd_config : nano /etc/ssh/sshd_config.
  • Add a line in the Authentication section of the file that says PermitRootLogin yes .
  • Save the updated /etc/ssh/sshd_config file.
  • Restart the SSH server: service sshd restart.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest