Base de Conhecimento

How to Configure SSH Passwoerd Login on Ubuntu 24.04 Server Print

  • 0

Secure Shell (SSH) allows you to remotely access and manage your Ubuntu server from another computer. By default, SSH using username and password may not be enabled on a fresh Ubuntu 24.04 installation. This guide will walk you through the steps to configure and enable SSH access using password.

Step 1
Log in to your server using your username and password via noVNC Console (Find out how here)

Step 2

Run:  sudo nano /etc/ssh/sshd_config

Output

https://sive.host/titfombe/repository/sshconfig1.png

Press Ctrl + X to go back to the dialog

Step 3

Include the command as prompted

Run:  sudo nano /etc/ssh/sshd_config.d/*.conf

https://sive.host/titfombe/repository/sshconfig3.png

Change PasswordAuthentication no to PasswordAuthentication yes

Press Ctrl+O, then enter to save changes/WriteOut and Ctrl+X to go back to the dialog

Output

If the output screen is blank, manually type in PasswordAuthentication yes

https://sive.host/titfombe/repository/sshconfig2.png

 

Step 4

Restart SSH and log in via terminal.

To restart SSH, run: sudo systemctl restart ssh 

https://sive.host/titfombe/repository/sshconfig4.png

Log in via terminal using command: ssh username@ip_address


Esta resposta lhe foi útil?
Back