VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
logon script not being executed (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: logon script not being executed
#2341
logon script not being executed 11 Years, 3 Months ago  
When connecting using ssh2, how can the window prompting for user id and password be suppressed when a global logon script exists?
crossetsftp (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2342
Re:logon script not being executed 11 Years, 3 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: 1343
graph
User Offline Click here to see the profile of this user
Logged 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.  
#2343
Re:logon script not being executed 11 Years, 3 Months ago  
Did my answer help?

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged 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.  
Go to top