Page 1 of 1

Send commands to server without shell?

Posted: Wed 25 Jun 2014 20:24
by snorkel
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.

Re: Send commands to server without shell?

Posted: Thu 26 Jun 2014 15:25
by snorkel
What I mean is it possible to use the shell componenet so it does not use a TTY?
I tried to specify none for the terminal type but it did not work.

Re: Send commands to server without shell?

Posted: Fri 27 Jun 2014 15:13
by Dimon
Now TScSSHShell does not provide such functionality, but we will consider the possibility of supporting it in the future.