I would have thought the same thing about using SSH on a remote client...
Nope, no go. I can get in fine when the remote machine has a user logged in, but when everyone is logged out, this happens.
Any help appreciated!
Here's the login command:
ssh -l jeffrey -p 22 -i /Users/jeffrey/.ssh/G4-500_dsa [ip address of server] -v
-
Here's the verbose log:
-
OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh_config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 501 geteuid 501 anon 1
debug1: Connecting to [ip address of server] port 22.
debug1: restore_uid
debug1: restore_uid
debug1: Connection established.
debug1: identity file /Users/jeffrey/.ssh/G4-500_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_2.9p2
debug1: match: OpenSSH_2.9p2 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_2.9p2
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 sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 132/256
debug1: bits set: 1033/2049
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '[ip address of server]' is known and matches the RSA host key.
debug1: Found key in /Users/jeffrey/.ssh/known_hosts2:1
debug1: bits set: 1023/2049
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is publickey
debug1: try pubkey: /Users/jeffrey/.ssh/G4-500_dsa
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: next auth method to try is keyboard-interactive
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: authentications that can continue: publickey,keyboard-interactive
debug1: no more auth methods to try
Permission denied (publickey,keyboard-interactive).
debug1: Calling cleanup 0x16938(0x0)
-
Originally posted by Arkham_c:
<STRONG>I would be surprised if it required the user to be logged in. That goes against everything that remote shells are about. I am going to test it for you to see. I leave my home machine logged in all the time, so it would never have been an issue for me.
Okay, I tested it. I turned on remote access on my iBook running 10.1.2. I was able to ssh in using OpenSSH on Windows NT. Initially I got the same error you did:
<font face = "courier">Permission denied >publickey,password,keyboard-interactive>.</font>
I realized though it was trying to log me in using the username on my NT system (duh). I added the -l <username> flag and it worked fine. So what I ended up with was:
<font face = "courier">ssh -l dshaw 192.168.1.112</font>
Maybe that's your problem too. If not, try passing the -v flag and see if that helps in debugging the problem.</STRONG>