Yubico Forum
https://forum.yubico.com/

[SOLVED]- yubico-pam module no longer working after reboot
https://forum.yubico.com/viewtopic.php?f=5&t=1480
Page 1 of 1

Author:  ShawnW [ Mon Oct 06, 2014 2:56 pm ]
Post subject:  [SOLVED]- yubico-pam module no longer working after reboot

I set up 2 factor authentication for remote SSH logins on my SUSE machine, using the yubico-pam module. It was working fine until I rebooted the machine. Now when I attempt a remote login I get the error:

Disconnected: No supported authentication methods available (server sent: publickey)

I think something must not be starting up properly. What am I doing wrong?

Author:  ShawnW [ Mon Oct 06, 2014 6:08 pm ]
Post subject:  Re: [QUESTION]- yubico-pam module no longer working after re

Verbose output of an ssh attempt:

OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to ubergenno.stat.cmu.edu [128.2.24.121] port 22.
debug1: Connection established.
debug1: identity file /home/shawn/.ssh/identity type -1
debug1: identity file /home/shawn/.ssh/id_rsa type -1
debug1: identity file /home/shawn/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.2
debug1: match: OpenSSH_6.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'ubergenno.stat.cmu.edu' is known and matches the RSA host key.
debug1: Found key in /home/shawn/.ssh/known_hosts:23
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/shawn/.ssh/identity
debug1: Trying private key: /home/shawn/.ssh/id_rsa
debug1: Trying private key: /home/shawn/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).

Author:  ShawnW [ Tue Oct 07, 2014 7:01 pm ]
Post subject:  Re: [SOLVED]- yubico-pam module no longer working after rebo

I had to change ChallengeResponseAuthentication to yes in /etc/ssh/sshd_config

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/