I am assigned to generate a script that can disable password login for ssh service. Knowing that I can perform this action by editing /etc/sshd\_config file, but my mentor mentioned the file I should look into is /etc/password file. That was the hint for me to perform this task. Here is what I did, I removed the 'x' symbol in the user. I believed the field is reserved for hashing password.

The original

```
 pi:x:1000:1000:,,,:/home/pi:/bin/bash

```

After edited:

```
 pi::1000:1000:,,,:/home/pi:/bin/bash

```

The result:
 Without the key I'm stuck with retyping the pass window.

Updated for clarity: The script should be used to reply on public and private key in order to login to the pi server. To put it another way, I try go for password-less login, making it a feature to harden security.