I might've done this wrong. I created a user with :
sudo adduser --disabled-password userX
And I've added a public key to /home/userX/.ssh/authorized_keys
. But when I ssh into the account I get the following error:
port 22: Connection timed out
SSH works fine when I log into other accounts.
Was I wrong to --disabled-password
? Does this do something else?
Any help would be appreciated. Thanks.