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
|