CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
SFTP authentication using Perl

 



Karkki
New User

Dec 23, 2013, 3:13 AM

Post #1 of 1 (1169 views)
SFTP authentication using Perl Can't Post

Hi,

I am usnig the below command to sftp a file from local serer to remote server using port number. Also, sftp key setup is done between those two servers. So, the pubilc key authentication should happen when ftp'ing the file to the remote server. But, i am not able to do so. But, i am able to ftp the file in command line. Can anyone help me on this.

Below is the script...

my %args = (ssh_args => {});
$args{port} = 30;
$args{identity_files} = "$ENV{HOME}/.ssh/id_rsa";
$args{debug} = 1;

$ENV{HOME} gives the home directory of the user logged in.

Below is the error i am getting.

Computing shared secret key.
Verifying server signature.
Waiting for NEWKEYS message.
Send NEWKEYS.
Enabling encryption/MAC/compression.
Sending request for user-authentication service.
Service accepted: ssh-userauth.
Trying empty user-authentication request.
Authentication methods that can continue: publickey,gssapi-with-mic,password.
Next method to try is publickey.
Next method to try is password.
Trying password authentication.
Will not query passphrase in batch mode.
Authentication methods that can continue: publickey,gssapi-with-mic,password.
Next method to try is publickey.
Next method to try is password.
Trying password authentication.
Will not query passphrase in batch mode.
Authentication methods that can continue: publickey,gssapi-with-mic,password.
Next method to try is publickey.
Next method to try is password.
Trying password authentication.
Will not query passphrase in batch mode.
Authentication methods that can continue: publickey,gssapi-with-mic,password.
Next method to try is publickey.
Next method to try is password.

Permission denied at /data/pp42d1/software/perl-5.8.8/lib/5.8.8/Net/SFTP.pm line 62



Can anyone help me is resolvig the above issue.

Thanks,

Karkki

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives