logon script not being executed 14 Years, 8 Months ago
|
|
When connecting using ssh2, how can the window prompting for user id and password be suppressed when a global logon script exists?
|
|
|
Logged
|
|
The administrator has disabled public write access.
|
|
Re:logon script not being executed 14 Years, 8 Months ago
|
|
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
|
|
bpence (Admin)
Admin
Posts: 1412
|
Logged
|
|
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
|
|
The administrator has disabled public write access.
|
|
Re:logon script not being executed 14 Years, 8 Months ago
|
|
Did my answer help?
Brian
|
|
bpence (Admin)
Admin
Posts: 1412
|
Logged
|
|
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
|
|
The administrator has disabled public write access.
|
|
|