Configuration to Enable ssh(Remote) Login in Ubuntu.

Configuration to Enable ssh(Remote) Login in Ubuntu.

How to Enable ssh (Remote) Login in Ubuntu. 

Have a Trouble to Access ssh Login in Ubuntu.

Steps to Configure ssh configuration file.

  1. Go to your system/VM and Open Terminal (use ctl+atl+t) and Follow Commands.
  2. Open sshd_config file in any editor like vim, nano, gedit (I use vim ) and modify some parameters.

  1. vim /etc/ssh/sshd_config

#PermitRootLogin prohibit-password
#PasswordAuthentication yes
Change to 
PermitRootLogin yes
PasswordAuthentication yes

  1. press i to edit.
  2. press "esc" then type ":wq" ( esc-> exit insert mode, w-> Write, q-> Quit editor).
  3. Restart the sshd.service
  1. systemctl restart sshd
  2. systemctl status sshd
  1. Now you must be access Remote Login.


    • Related Articles

    • Setup noVNC on Ubuntu 20.04/Gnome 3.36

      VNC (Virtual Network Computing) enables you to control your Linux installation from another computer on the same network, by viewing and interacting with the desktop from the other computer. To learn more about VNC, click here noVNC allows you to ...
    • Enabling X11 Forwarding on Ubuntu 22.04 to Run qluman-qt from a Head Node

      Objective This article provides step-by-step instructions to enable X11 forwarding on a head node running Ubuntu 22.04 server edition and how to access GUI applications like qluman-qt from a login node using SSH with X11 forwarding. Edit SSH Server ...
    • Enable Root Login in GUI Lock Screen in Ubuntu.

      How to Enable Root Login in Ubuntu in Login Screen. Do you have Trouble to Login as root user in Ubuntu like this? Steps to Enable Root Login Login as other user as you Define in Installation time. Open the Terminal, shortcut to open Terminal ...
    • Accessing Services Running on a Different Network via Jumphost using SSH Local Port Forwarding

      Objective Learn how to access services hosted on a remote network (such as an internal web server or application) from your local machine by leveraging a jumphost (also known as a bastion host) and SSH local port forwarding. What is SSH Local Port ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...