Hi all.
A couple of months ago, I got SSH working on all 5 of my AIX V 5.2 servers. Due to company standards, I now need to disable ftp, but before I can do this, I need to get SCP working...
I have logged onto system1 with user1, run ssh-keygen -t rsa, ftp'ed the id_rsa.pub file to system2 as authorized_keys and I have even made sure that the contents of the file match. I have tried different combinations of permissions (700, 755, 600, 644) on both machines and I have made sure that the home directories are owned by user1.
When I try to scp from system1 to system2, it doesn;t connect.
Output for user1:
scp -v steve1 XXXXXXXX:
Executing: program /usr/local/bin/ssh host XXXXXXXX, user (unspecified), command scp -v -t .
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.6l 04 Nov 2003
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to XXXXXXXX [XX.XXX.X.XX] port 22.
debug1: Connection established.
debug1: identity file /sag/.ssh/identity type 0
debug1: identity file /sag/.ssh/id_rsa type 1
debug1: identity file /sag/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8p1
debug1: match: OpenSSH_3.8p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
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 'XXXXXXXX' is known and matches the RSA host key.
debug1: Found key in /sag/.ssh/known_hosts:4
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: /sag/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /sag/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).
lost connection
I am hoping that someone can suggest a few other things to try, coz frankly, it looks like I have done it perfectly according to all of the webdocs, but for some reason it is not working.
Thanks a stack!
kat000003
A couple of months ago, I got SSH working on all 5 of my AIX V 5.2 servers. Due to company standards, I now need to disable ftp, but before I can do this, I need to get SCP working...
I have logged onto system1 with user1, run ssh-keygen -t rsa, ftp'ed the id_rsa.pub file to system2 as authorized_keys and I have even made sure that the contents of the file match. I have tried different combinations of permissions (700, 755, 600, 644) on both machines and I have made sure that the home directories are owned by user1.
When I try to scp from system1 to system2, it doesn;t connect.
Output for user1:
scp -v steve1 XXXXXXXX:
Executing: program /usr/local/bin/ssh host XXXXXXXX, user (unspecified), command scp -v -t .
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.6l 04 Nov 2003
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to XXXXXXXX [XX.XXX.X.XX] port 22.
debug1: Connection established.
debug1: identity file /sag/.ssh/identity type 0
debug1: identity file /sag/.ssh/id_rsa type 1
debug1: identity file /sag/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8p1
debug1: match: OpenSSH_3.8p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
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 'XXXXXXXX' is known and matches the RSA host key.
debug1: Found key in /sag/.ssh/known_hosts:4
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: /sag/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /sag/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).
lost connection
I am hoping that someone can suggest a few other things to try, coz frankly, it looks like I have done it perfectly according to all of the webdocs, but for some reason it is not working.
Thanks a stack!
kat000003