How to enable ssh remote access in Ubuntu

Here’s how to enable ssh remote access in Ubuntu

  • Open terminal (Ctrl+Alt+T)
  • Install openssh-server using following command:
    sudo apt-get install openssh-server
  • To check ssh status run
    sudo service ssh status
  • 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
  • Restart ssh server:
    sudo service ssh restart