Re: [Ssh-sftp-perl-users] help needed with SFTP
Brought to you by:
dbrobins
From: Howard, C. <Ho...@pr...> - 2009-01-22 18:28:56
|
followup to myself: I think I have the basic script working ok now. I wrestled with my own syntax problems but I believe I have tamed the "put" issue and have my file appearing on the remote server at the proper place. I still would like some guidance on if it is possible to skip through some of the login negotiation. Chris -----Original Message----- From: Howard, Chris [mailto:Ho...@pr...] Sent: Thursday, January 22, 2009 10:14 AM To: ssh...@li... Subject: [Ssh-sftp-perl-users] help needed with SFTP Hello, I am attemping to write a simple perl script to upload a file to a remote site using sftp. I am used to Net::FTP so my script follows along similar lines. I think that lack of sophistication is probably a large part of my problem! Problem #1: running a small test script with debug turned on I see that my login sequence gets held up for quite awhile before finally saying "Entering Diffie-Hullman Group 1 key exchange". Then it moves along and gets me logged in with my username and password. Is there any way to avoid the long delay? Problem #2: I need to change directory on the remote machine and then upload my file. I cannot find any "cd" type of command. I have attempted to use the full pathname in the "put", but that also seems to not be working as I expect. Does anyone have a simple example of logging in with a name and password, navigating to a directory, uploading/downloading a file? Chris ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |