Open akshat-kumar2109 opened 1 month ago
step 1:
sudo vim /etc/ssh/sshd_config
step 2:
FROM:
TO:
PermitRootLogin yes
Shortcut (Step 1 + Step 2):
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
step 3:
sudo systemctl restart ssh
step 4:
sudo passwd
[sudo] password for linuxconfig:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
step 5:
sudo ufw allow ssh
I had to manually add the SSH keys to each servers. I am getting this error on the following command. Can anyone tell me what can be the reason for this?