Solved New FreeBSD 11.1 - cannot ssh

Hi,

Just finished installing FreeBSD11.1 on a vps and for some reason, I cannot ssh to the box..
I created a new user and set 'use password based authentication' to no.
I then created a key pair
su fred
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/kryten_ed25519_2018_key
cat /.ssh/kryten_ed25519_2018_key.pub > /.ssh/authorized_keys
I set password to the key..
and copied the kryten_ed25519_2018_key to my desktop..Each time i tried to login it keep telling the password is wrong..
When I run ssh-keygen -p -f ~/.ssh/kryten_ed25519_2018_key it allow me to change the password with no problem..
So the issue is not that I typed password wrong.

Could anyone please help?
 
I set password to the key..
and copied the kryten_ed25519_2018_key to my desktop.
What client are you using on the desktop?

Each time i tried to login it keep telling the password is wrong..
If you use FreeBSD's ssh(1) the key has the wrong name to be picked up by default, so it's not used unless explicitly specified on the command line. Hence the password requested is the account's password, not the key's password.
 
What client are you using on the desktop?
I use cygwin on windows 10 and run the following
ssh -i ~/.ssh/kryten_ed25519_2018_key fred@206.95.xx.xx
Code:
Enter passphrase for key '/home/Garfield/.ssh/kryten_ed25519_2018_key':
Password for fred@backup.mydomain.co.uk:
Password for fred@backup.mydomain.co.uk:
Password for fred@backup.mydomain.co.uk:
fred@206.95.xx.xx: Permission denied (publickey,keyboard-interactive).
I also get the following on the server:
Code:
error pam authentication failure for
 
Back
Top