19.1.4 ssh key problem

Started by Jack V, April 01, 2019, 06:29:26 PM

Previous topic - Next topic
April 01, 2019, 06:29:26 PM Last Edit: April 01, 2019, 07:07:18 PM by Jack V
Hello all,

I am trying to login into OPNsense 19.1.4-amd64 box with an ssh-key but it keeps failing me.

I can ssh login with a created user or as root for that mater with a password but not with a ssh-key.

Checked that .ssh in home folder has 700 and authorized_keys has 600.

Client on Windows 10 pro gets:
me@host: Permission denied (publickey).

This is the native ssh client that now is standard on Windows 10. Other (Linux) hosts work without problem with the key.

And from the /var/log/system.log I get:
Apr  1 18:21:35 host sshd[79752]: error: PAM: authentication error for me from host
Apr  1 18:21:35 host sshd[79752]: Connection reset by authenticating user me host port 53028 [preauth]

Anybody got clue what is going on?


April 03, 2019, 03:28:53 PM #1 Last Edit: April 03, 2019, 03:35:33 PM by qinohe
Hey Jack V, first I need more info  ;)
How did you create you keypair on Windows?
Did you create a separate user on OPNsense?
My doubts go to the keypair!

Just so you know, I can login from Win10 on my OPNsense without problems, though, I normally use Linux for that :P

edit: Windows pro, then you version is 1803?