Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | SCP fails with publickey |
|---|---|
| Date: | Fri, 20 May 2005 16:06:57 -0400 |
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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | OpenSSH & ChRoot, Richard Secor |
|---|---|
| Next by Date: | Re: workarounds for Host param not canonicalizing?, Alexander Klimov |
| Previous by Thread: | OpenSSH & ChRoot, Richard Secor |
| Next by Thread: | Public key authentication problem, Hicks,Rodger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |