using SCP without being prompted for a password
2007-12-24 21:35:00
Thanks for all those who responded !! Lots od em soo cant include all the
names here ..
But the problem still persists . All hv recommended to use Public Key
infrastructure ..and I hv done that ..heres is wat i Get :( ---
/usr/local/bin/scp -B -P 922 MACHINE B:testfile .
Permission denied (publickey,password).
The verbose mode log is :--->>
$ /usr/local/bin/scp -B -v -P 922 MACHINE B:testfile .
Executing: program /usr/local/bin/ssh host MACHINE B, user (unspecified),
command scp
-v -f testfile
OpenSSH_3.0.2p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /usr/local/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 1016 geteuid 0 anon 1
debug1: Connecting to MACHINE B [13.119.102.117] port 922.
debug1: temporarily_use_uid: 1016/1 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 1016/1 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /u02/siebel/.ssh/identity type 0
debug1: identity file /u02/siebel/.ssh/id_rsa type -1
debug1: identity file /u02/siebel/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version
OpenSSH_2.5.2p2
debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH_2\.5\.[012]
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.0.2p1
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_OLD sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 129/256
debug1: bits set: 1037/2049
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'MACHINE B' is known and matches the RSA host key.
debug1: Found key in /u02/siebel/.ssh/known_hosts2:1
debug1: bits set: 1045/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,password
debug1: next auth method to try is publickey
debug1: try privkey: /u02/siebel/.ssh/id_rsa
debug1: try privkey: /u02/siebel/.ssh/id_dsa
debug1: no more auth methods to try
Permission denied (publickey,password).
debug1: Calling cleanup 0x2f2b0(0x0)
--- "Sharma, Dayanand (CAP, GEFA, Contractor)"
<Dayanand.Sharma at gecapital.com> wrote:
> Hiii Gurus ,
>
> I want to use scp to tranfer files from System A to system B
> so that I am
> not prompted for the password for System B ...
> Is there some flag with scp for the same .. or some other
> workaround ..
>
> Also I experience that it takes a lot of time for the password
> prompt to
> come up ... Can it be come config issue with ssh ? Has anyone
> faced such an
> issue before ..
>
> Any clues ?
>
> TIA
>
> -Dayanand Sharma
> _______________________________________________
> codeprof mailing list
> codeprof at codeprof.com
> http://www.codeprof.com/execute/ask/?codeinfoid=9720
Comments
Got something to say?
You must be logged in to post a comment.

