Xshell Forum

Logon Scripts => Expect/Send Pairs Feature

Last post: Thursday, September 10, 2009 9:20 AM by coolguy, 3 reply

 
Wednesday, September 9, 2009 10:35 PM - coolguy

Logon Scripts => Expect/Send Pairs Feature

 
Hi,

In the Logon Scripts, Expect/Send works great for the first login.

I.e I have set:
Expect: Password:
Send:

But, when I do su - , it automatically enters password for the first time only. For subsequent su's it doesn't enter the password automatically. How to work around it?

Basically, everytime "Password:" is prompted for SU/SSH/SCP's etc, I would like to push the default password. Thanks!

Program Ver. : Xshell 3.0
Wednesday, September 9, 2009 10:36 PM - coolguy

Re: Logon Scripts => Expect/Send Pairs Feature

 
In the above, for SEND: my_pass
Wednesday, September 9, 2009 10:52 PM - Support

Re: Logon Scripts => Expect/Send Pairs Feature

 
Xshell can't send a string every time a certain string appears. For instance, sending password every time the word, 'Password:' appears. This is also a very insecure method to change user. Also, there may be problem when the word, the specific word, in this case 'Password:', appears within the contents and Xshell tries to send the password.

To send password, we recommend typing in manually. Or, you can also use the Quick Button feature to send a string with a click.


---
Technical Support
Thursday, September 10, 2009 9:20 AM - coolguy

Re: Logon Scripts => Expect/Send Pairs Feature

 
Ohh ok. Would be nice to have this as an option though.

Also when we create a quickbutton, it shows the new button on toolbar. Once xshell restarted the button is gone. Only way to get it back again is QuickButton -> Browser -> hit ok. Then the button shows up, but gone again once xshell is closed.