I connect from a Linux machine to several Macs over ssh using public/private keys.
The setup is the identical on every ac, different OSs from 10.5 to 10.9 and publickey working. Only one of them, running OS X 10.9.5, keeps asking for user's password instead of using publickey.
Actually there's no access using publickey from any machine
ssh -vvv is:
...
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /Users/akeeem/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /Users/akeeem/.ssh/id_rsa
debug3: no such identity: /Users/akeeem/.ssh/id_rsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
What should i check to make sure publickey is operational?
/Users/akeem
, but you said connect from a linux machine. – Barmar Nov 17 '14 at 21:39~/.ssh/id_rsa
is missing on this machine. Copy it from one of the working machines. – Barmar Nov 17 '14 at 21:47ls -l /path/to/file
if a file's permissions are relevant), and the content of~/.ssh/authorized_keys
on the server. – Gilles 'SO- stop being evil' Nov 18 '14 at 08:59