[Ssh-sftp-perl-users] SSH2 error - unsupported shell?
Brought to you by:
dbrobins
From: Mark F. <mf...@tr...> - 2007-05-24 22:35:53
|
Folks, wrote this sftp script and it works great, I have connected to a few servers with no problems then.... I got this error trying to connect to an external host. Anybody know what's up with this? D:\scripts>perl tcp_sftp.pl -f svstest.ftp -v 1 -r . -c ls Using a file for the commands......... filename is ->svstest.ftp<- ......... Reading commands file............please wait... HOST:-->ftp.test.iconnectdata.com<- PORT->10022<- USER->auser<- PWD->xxxxxx<- program_dir = . 0->tcp_sftp.pl<- Base Directory-><- Basename->tcp_sftp<- LOG->/logs/tcp_sftp-05-24-2007.log<- Starting SFTP Session at 05-24-2007 18:27:00 for <ftp://ftp.test.iconnectdata.com> ftp.test.iconnectdata.com.......................... Attempting to log into <ftp://ftp.test.iconnectdata.com> ftp.test.iconnectdata.com using auser.................... TCPITM6: Reading configuration data /.ssh/config TCPITM6: Reading configuration data /etc/ssh_config TCPITM6: Connecting to <ftp://ftp.test.iconnectdata.com> ftp.test.iconnectdata.com, port 10022. TCPITM6: Socket created, turning on blocking... TCPITM6: Remote protocol version 2.0, remote software version Connect:Enterprise_UNIX_2.2.00 TCPITM6: Net::SSH::Perl Version 1.23_01, protocol version 2.0. TCPITM6: No compat match: Connect:Enterprise_UNIX_2.2.00. TCPITM6: Connection established. TCPITM6: Sent key-exchange init (KEXINIT), wait response. TCPITM6: Algorithms, c->s: 3des-cbc hmac-sha1 none TCPITM6: Algorithms, s->c: 3des-cbc hmac-sha1 none TCPITM6: Entering Diffie-Hellman Group 1 key exchange. TCPITM6: Sent DH public key, waiting for reply. TCPITM6: Received host key, type 'ssh-rsa'. TCPITM6: Host 'ftp.test.iconnectdata.com' is known and matches the host key. TCPITM6: Computing shared secret key. TCPITM6: Verifying server signature. TCPITM6: Waiting for NEWKEYS message. TCPITM6: Enabling incoming encryption/MAC/compression. TCPITM6: Send NEWKEYS, enable outgoing encryption/MAC/compression. TCPITM6: Sending request for user-authentication service. TCPITM6: Service accepted: ssh-userauth. TCPITM6: Trying empty user-authentication request. TCPITM6: Authentication methods that can continue: publickey,password,keyboard-interactive. TCPITM6: Next method to try is publickey. TCPITM6: Trying pubkey authentication with key file '/.ssh/known_hosts2' TCPITM6: Will not query passphrase for '/.ssh/known_hosts2' in batch mode. TCPITM6: Loading private key failed. TCPITM6: Next method to try is password. TCPITM6: Trying password authentication. TCPITM6: Login completed, opening dummy shell channel. TCPITM6: channel 0: new [client-session] TCPITM6: Requesting channel_open for channel 0. TCPITM6: channel 0: open confirm rwindow 0 rmax 32768 TCPITM6: Got channel open confirmation, requesting shell. TCPITM6: Requesting service shell on channel 0. TCPITM6: channel 1: new [client-session] TCPITM6: Requesting channel_open for channel 1. IO::Socket::INET at C:/Perl/site/lib/Net/SSH/Perl/SSH2.pm line 295 Received disconnect message: Unsupported request (shell). at C:/Perl/site/lib/Net/SSH/Perl/SSH2.pm line 281 Thanks, David M. Funk President/CEO Tivoli Certified Enterprise Consultant Specializing in Network and Systems Management Solutions Trinity Solutions 604 Cassandra Dr. Suite 204 Cranberry Twp., PA 16066 Phone: 724-316-0721 Fax: 724-772-7889 email: mf...@tr... |