mdem ubuntu ssh key no password 1

mdem ubuntu ssh key no password

# To disable tunneled clear text passwords, change to no here!

sudo nano /etc/ssh/sshd_config

PasswordAuthentication no

```
-----------------------------------------------
```
sudo service ssh restart

Here is what the above code is Doing:
1. We’re creating a new user called “grader”
2. We’re giving that user the ability to sudo
3. We’re creating an SSH key pair for that user
4. We’re installing that public key as an authorized key for the grader user
5. We’re disabling root login over SSH
6. We’re disabling password authentication over SSH
7. We’re restarting the SSH service

Similar Posts