Send commands to server without shell?
Posted: Wed 25 Jun 2014 20:24
Hi,
I need to send commands to the server but when I use the shell component the remote host does not allow a shell and if it detects one it disconnects.
I can get it working in putty plink.exe like this:
plink -ssh -t [email protected] changepass
[email protected]'s password:
Enter current password:
Password1
Enter new password:
Password2
Enter new password again:
Password2
Password changed.
I also tried the channel component in direct mode but it does not like it when I specify the dest host and port.
I need to send commands to the server but when I use the shell component the remote host does not allow a shell and if it detects one it disconnects.
I can get it working in putty plink.exe like this:
plink -ssh -t [email protected] changepass
[email protected]'s password:
Enter current password:
Password1
Enter new password:
Password2
Enter new password again:
Password2
Password changed.
I also tried the channel component in direct mode but it does not like it when I specify the dest host and port.