If I change my config file to id_rsa all works great... no password,
etc...
If I change my config file: to id_dsa I get permission denied..
$ /usr/tivoli/scripts/sftp.pl -l ./ -r / -f dmf.test -c put -d 0
User-->mfunk Home-->/home/mfunk IDFile-->
Remote User-->sftptest Host-->tcpproject
Host->tcpproject Local Path-->./ Remote Path-->/ File-->dmf.test
CMD-->put RemFlag-->0
Starting SFTP Session at Mon Oct 10 17:03:20 EDT 2005 for
tcpproject..........................
************************************************
Attempting to log into tcpproject using user->sftptest
tcp_rs60001: Reading configuration data /home/mfunk/.ssh/config
tcp_rs60001: Reading configuration data /etc/ssh_config
tcp_rs60001: Connecting to tcpproject, port 22.
tcp_rs60001: Remote protocol version 2.0, remote software version 1.36
sshlib: GlobalScape
tcp_rs60001: Net::SSH::Perl Version 1.28, protocol version 2.0.
.cp_rs60001: No compat match: 1.36 sshlib: GlobalScape
tcp_rs60001: Connection established.
tcp_rs60001: Sent key-exchange init (KEXINIT), wait response.
tcp_rs60001: Algorithms, c->s: 3des-cbc hmac-sha1 zlib
tcp_rs60001: Algorithms, s->c: 3des-cbc hmac-sha1 zlib
tcp_rs60001: Entering Diffie-Hellman Group 1 key exchange.
tcp_rs60001: Sent DH public key, waiting for reply.
tcp_rs60001: Received host key, type 'ssh-dss'.
tcp_rs60001: Host 'tcpproject' is known and matches the host key.
tcp_rs60001: Computing shared secret key.
tcp_rs60001: Verifying server signature.
tcp_rs60001: Waiting for NEWKEYS message.
tcp_rs60001: Enabling incoming encryption/MAC/compression.
tcp_rs60001: Send NEWKEYS, enable outgoing encryption/MAC/compression.
tcp_rs60001: Sending request for user-authentication service.
tcp_rs60001: Service accepted: ssh-userauth.
tcp_rs60001: Trying empty user-authentication request.
tcp_rs60001: Authentication methods that can continue:
password,publickey.
tcp_rs60001: Next method to try is password.
tcp_rs60001: Trying password authentication.
tcp_rs60001: Will not query passphrase in batch mode.
tcp_rs60001: Authentication methods that can continue:
password,publickey.
tcp_rs60001: Next method to try is password.
tcp_rs60001: Trying password authentication.
tcp_rs60001: Will not query passphrase in batch mode.
tcp_rs60001: Authentication methods that can continue:
password,publickey.
tcp_rs60001: Next method to try is password.
tcp_rs60001: Trying password authentication.
tcp_rs60001: Will not query passphrase in batch mode.
tcp_rs60001: Authentication methods that can continue:
password,publickey.
tcp_rs60001: Next method to try is password.
tcp_rs60001: Next method to try is publickey.
tcp_rs60001: Trying pubkey authentication with key file 'id_dsa'
tcp_rs60001: Will not query passphrase for 'id_dsa' in batch mode.
tcp_rs60001: Loading private key failed.
tcp_rs60001: Trying pubkey authentication with key file
'/home/mfunk/.ssh/id_dsa'
tcp_rs60001: Will not query passphrase for '/home/mfunk/.ssh/id_dsa' in
batch mode.
tcp_rs60001: Loading private key failed.
Permission denied at /usr/local/lib/perl5/site_perl/5.8.7/Net/SFTP.pm
line 62
$
It shouldn't matter to the server I am trying to connect to should it?
As long as it has both pub files?
Any one have any idea?
Thanks,
David M. Funk
President/CEO
Tivoli Certified Enterprise Consultant
Specializing in Network and Systems Management Solutions
Trinity Solutions
604 Cassandra Dr.
Cranberry Twp., PA 16066
Phone: 724-316-0721
Fax: 724-772-7889
email: mf...@tr...
http://www.trinitysol.net
|