|
I installed Net::SFTP on a solaris 8 server which is contacting another server of unknown type. If I SFTP at the command line, there is not delay. When I use a small shell script to execute the NET::SFTP process, there is a delay to process some commands. I have indicated the delay. Also I do not get a shell after the last line. What does that error indicate? I do not have access to the target server and ssh is not installed on the source server so there is no ssh_config in /etc.
Here is the shell script.
use Net::SFTP;
my %args = (user => 'ftpuser', password => '*******', debug => 1,);
my $host='##.##.##.##';
my $sftp = Net::SFTP->new($host, %args);
server# ./TestSFTP
server: Reading configuration data /home1/users/poster/.ssh/config
server: Reading configuration data /etc/ssh_config
server: Connecting to ##.##.##.##, port 22.
server: Remote version string: SSH-1.99-OpenSSH_3.9p1
server: Remote protocol version 1.99, remote software version OpenSSH_3.9p1
server: Net::SSH::Perl Version 1.30, protocol version 2.0.
server: No compat match: OpenSSH_3.9p1.
server: Connection established.
server: Sent key-exchange init (KEXINIT), wait response.
server: Algorithms, c->s: 3des-cbc hmac-sha1 none
server: Algorithms, s->c: 3des-cbc hmac-sha1 none
*** there is a 20 second delay here
server: Entering Diffie-Hellman Group 1 key exchange.
server: Sent DH public key, waiting for reply.
server: Received host key, type 'ssh-dss'.
server: Host '##.##.##.##' is known and matches the host key.
server: Computing shared secret key.
*** there is a 15 second delay here
server: Verifying server signature.
server: Waiting for NEWKEYS message.
server: Enabling incoming encryption/MAC/compression.
server: Send NEWKEYS, enable outgoing encryption/MAC/compression.
server: Sending request for user-authentication service.
server: Service accepted: ssh-userauth.
server: Trying empty user-authentication request.
server: Authentication methods that can continue: publickey,gssapi-with-mic,password.
server: Next method to try is publickey.
server: Next method to try is password.
server: Trying password authentication.
server: Login completed, opening dummy shell channel.
server: channel 0: new [client-session]
server: Requesting channel_open for channel 0.
server: channel 0: open confirm rwindow 0 rmax 32768
server: channel 1: new [client-session]
server: Requesting channel_open for channel 1.
server: Sending subsystem: sftp
server: Requesting service subsystem on channel 1.
server: channel 1: open confirm rwindow 0 rmax 32768
server: sftp: Sending SSH2_FXP_INIT
esrver: sftp: Remote version: 3
server#
|