SCP fails with publickey
From: Hicks,Rodger (Rodger.Hicks_at_fhlbny.com)
Date: 05/20/05
- Previous message: Richard Secor: "OpenSSH & ChRoot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 20 May 2005 16:06:57 -0400 To: <secureshell@securityfocus.com>
Can anyone help? I'm trying to scp a file from the same box as the same
userid to another box with different userids using public keys. One
userid works and the other doesn't. Here's my debug information clearly
showing that publickey isn't working for the second user (chur@unixd1).
My authorized_keys file for both users are identical. What could be
causing this?
-------FIRST SCP EXECUTION WHICH SUCCEEDS WITH
PUBLICKEY----------------------
unixead2:cbs:/cbs/54> scp -v /tmp/myfile havankir@unixd1:/tmp
Executing: program /usr/bin/ssh host unixd1, user havankir, command scp
-v -t /tmp
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): A file or
directory in the path name does not exist.
debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to unixd1 [10.2.200.81] port 22.
debug1: Connection established.
debug1: identity file /home/cbs/.ssh/identity type -1
debug1: identity file /home/cbs/.ssh/id_rsa type 1
debug1: identity file /home/cbs/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
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 'unixd1' is known and matches the RSA host key.
debug1: Found key in /home/cbs/.ssh/known_hosts:2
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
debug1: Next authentication method: publickey
debug1: Trying private key: /home/cbs/.ssh/identity
debug1: Offering public key: /home/cbs/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 149
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /tmp
Sending file modes: C0777 16 myfile
Sink: C0777 16 myfile
myfile
100% 16 0.0KB/s 00:00
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.4 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0
-------SECOND SCP AS A DIFFERENT USER WHICH FAILS
PUBLICKEY----------------------
unixead2:cbs:/cbs/54> scp -v /tmp/myfile2 chur@unixd1:/tmp
Executing: program /usr/bin/ssh host unixd1, user chur, command scp -v
-t /tmp
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): A file or
directory in the path name does not exist.
debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to unixd1 [10.2.200.81] port 22.
debug1: Connection established.
debug1: identity file /home/cbs/.ssh/identity type -1
debug1: identity file /home/cbs/.ssh/id_rsa type 1
debug1: identity file /home/cbs/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
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 'unixd1' is known and matches the RSA host key.
debug1: Found key in /home/cbs/.ssh/known_hosts:2
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
debug1: Next authentication method: publickey
debug1: Trying private key: /home/cbs/.ssh/identity
debug1: Offering public key: /home/cbs/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/cbs/.ssh/id_dsa
debug1: Next authentication method: password
chur@unixd1's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
chur@unixd1's password:
unixead2:cbs:/cbs/54>
Thanks,
Rodger
Confidentiality Notice: The information contained in this e-mail and any attachments (including, but not limited to, any attached e-mails) may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.
- Previous message: Richard Secor: "OpenSSH & ChRoot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|