Forum

logon script not be...
 
Notifications
Clear all

logon script not being executed

0 Posts
2 Users
0 Reactions
296 Views
(@crossetsftp)
New Member
Joined: 15 years ago
Posts: 1
Topic starter  

When connecting using ssh2, how can the window prompting for user id and password be suppressed when a global logon script exists?


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

Logins cannot be scripted with SSH connections. Logon scripts are used for telnet or serial connections where you need to watch for and respond to prompts presented by the host using WaitFor() and SendText(). If you are using a mix of both SSH and Telnet sessions, using the global login script is not a good place to do this. Use the Options->Properties->Scripts instead, which is a session specific script you can apply to only telnet connections.

In SSH, authentication is part of the SSH protocol. If you want to login without being prompted, you can simply enter your username and password (or private key) in the authentication dialog and click 'remember password'. Be sure to also File->Save your connection settings to make this permanent. In this way, scripting is not required for authentication. You can still use the logon script to do other things (wait for shell prompt, run programs, read output, etc) that happen after authentication.

Let me know if this helps...

Brian


   
ReplyQuote
(@bpence)
Member Admin
Joined: 1 year ago
Posts: 1375
 

Did my answer help?

Brian


   
ReplyQuote
Share: