Re: ssh -i not working

From: Ed Stankevich (whoha_at_med.umich.edu)
Date: 07/23/04


Date: Fri, 23 Jul 2004 10:42:18 -0400

Ed Stankevich wrote:
> Not sure where to go from here. I have tried several things checked
> ssh-keysign to see if it has the correct protections looked at the
> ssh_config settings and looked at the OpenBsd Man Pages without figuring
> this one out.
>
> [user1@server1 .ssh]$ ssh -v -i ~/.ssh/id_rsa kumquat
> OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7a Feb 19 2003
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Connecting to kumquat [kumquat] port 22.
> debug1: Connection established.
> debug1: identity file /home/user1/.ssh/id_rsa type 1
> debug1: identity file /home/user1/.ssh/identity type -1
> debug1: identity file /home/user1/.ssh/id_rsa type 1
> debug1: identity file /home/user1/.ssh/id_dsa type 2
> debug1: Remote protocol version 2.0, remote software version
> OpenSSH_3.7.1p2
> debug1: match: OpenSSH_3.7.1p2 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_3.7.1p2
> 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: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host 'kumquat' is known and matches the RSA host key.
> debug1: Found key in /home/user1/.ssh/known_hosts:1
> 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,password,keyboard-interactive
> debug1: Next authentication method: publickey
> debug1: Offering public key: /home/user1/.ssh/id_rsa
> debug1: Authentications that can continue:
> publickey,password,keyboard-interactive
> debug1: Trying private key: /home/user1/.ssh/identity
> debug1: Offering public key: /home/user1/.ssh/id_rsa
> debug1: Authentications that can continue:
> publickey,password,keyboard-interactive
> debug1: Offering public key: /home/user1/.ssh/id_dsa
> debug1: Authentications that can continue:
> publickey,password,keyboard-interactive
> debug1: Next authentication method: keyboard-interactive
> debug1: Authentications that can continue:
> publickey,password,keyboard-interactive
> debug1: Next authentication method: password
> user1@kumquat's password:
> debug1: Authentication succeeded (password).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> [user1@server2 user1]$
>
Ok I figured it out. It was the way I was putting the id_rsa.pub into
the authorized_keys file, it cut off part of the top of the file. Used
scp and it is now working.