Has anyone been successful in resolving this with passwd? I've tried
this against AIX 5.3, Sles 8 and 9, Solaris 8 and 9 servers.
I've had a variety of interesting experiences and would love to make
this work. :-)
I have a couple of code examples I've written to help demonstrate the
problem/ possible bug.
FYI.. it works just fine IF you don't interact with passwd. If I grab
info via ls, cat, or whatever
then it works great.
I understand there is a Net::SSH2 available and am looking into
replacing Net::SSH::Perl with it.
I'm soo close to makeing this work. Would be nice to finish what I started=
:D
Thanks!
---------
From: mgt <comeonbaby@mg...>
problem of remoteinteract2.pl and remoteinteract.pl
2005-12-08 07:05
---------
Everything is fine rather than executing like passwd, needed be interactive=
.
Things always get stuck on "channel 1: open confirm rwindow 0 rmax 32768".
May somebody tell me how to solve it please?
Here are the outputs:
user@hostname [eg] # perl remoteinteract2.pl
hostname: Reading configuration data /root/.ssh/config
hostname: Reading configuration data /etc/ssh_config
hostname: Allocated local port 1020.
hostname: Connecting to remotehost, port 22.
hostname: Remote protocol version
2.0, remote software version OpenSSH_3.5p1
FreeBSD-20030924
hostname: Net::SSH::Perl Version 1.29, protocol version 2.0.
hostname: No compat match: OpenSSH_3.5p1 FreeBSD-20030924.
hostname: Connection established.
hostname: Sent key-exchange init (KEXINIT), wait response.
hostname: Algorithms, c->s: 3des-cbc hmac-sha1 none
hostname: Algorithms, s->c: 3des-cbc hmac-sha1 none
hostname: Entering Diffie-Hellman Group 1 key exchange.
hostname: Sent DH public key, waiting for reply.
hostname: Received host key, type 'ssh-dss'.
hostname: Host 'remotehost' is known and matches the host key.
hostname: Computing shared secret key.
hostname: Verifying server signature.
hostname: Waiting for NEWKEYS message.
hostname: Enabling incoming encryption/MAC/compression.
hostname: Send NEWKEYS, enable outgoing encryption/MAC/compression.
hostname: Sending request for user-authentication service.
hostname: Service accepted: ssh-userauth.
hostname: Trying empty user-authentication request.
hostname: Authentication methods that can continue:
publickey,password,keyboard-interactive.
hostname: Next method to try is publickey.
hostname: Next method to try is password.
hostname: Trying password authentication.
hostname: Login completed, opening dummy shell channel.
hostname: channel 0: new [client-session]
hostname: Requesting channel_open for channel 0.
hostname: channel 0: open confirm rwindow 0 rmax 32768
hostname: Got channel open confirmation, requesting shell.
hostname: Requesting service shell on channel 0.
hostname: channel 1: new [client-session]
hostname: Requesting channel_open for channel 1.
hostname: Entering interactive session.
hostname: Sending command: passwd
hostname: Requesting service exec on channel 1.
hostname: channel 1: open confirm rwindow 0 rmax 32768
|