VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Scripting with SSH2? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Scripting with SSH2?
#2329
Scripting with SSH2? 10 Years, 10 Months ago  
I have created an automatic login script (very similar to your example on the web site) for use with an SSH2 server, but I'm confused by the behavior. When I double-click the .tnt file that contains the login script, the "SSH2: Authentication" dialog box appears. A few seconds later the Timeout error MsgBox from my auto-login script appears. If I then enter my username and password into the SSH2: Authentication box, I am logged in successfully.

Is there a way to disable the display of the SSH2: Authentication dialog and force the "Login:" and "Password:" prompts from the SSH server to be passed through, so that my script can respond to the prompts? Or is it not possible to use an auto-login script with SSH2?

Steve Wyatt
sywyatt (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2330
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Login scripts are not necessary for SSH authentication. Authentication is already part of the SSH protocol. What you should do is delete the login script and use the login dialog box. Check the 'remember password' option and you won't get this dialog every time.

You can still use the login script to execute things in the shell, but you can skip the username/password part of it.

Brian
bpence (Admin)
Admin
Posts: 1341
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.  
#2331
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Hi Brian:

Thank you for the (after hours) response.

I opened my .tnt file and deleted the login script then closed AT (and saved the changes).

Next, I double-clicked my .tnt file and entered my Username and Password on the SSH2: Authentication dialog, then checked the "Remember Password" checkbox, then selected "OK". That logged me in to the server.

However, after I logged out and closed AT, I double-clicked the same .tnt file again, and the SSH2: Authentication dialog box appeared, but the Username and Password fields were blank. Selecting "OK" resulted in a "You must supply a username" error box.

Steve Wyatt
sywyatt (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2332
Re:Scripting with SSH2? 10 Years, 10 Months ago  
No problem.

After you supply the username and password and check the 'remember password' box, you must still click File->Save to save all of the config information back to the file to use it again next time.

Brian
bpence (Admin)
Admin
Posts: 1341
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.  
#2333
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Brian:

Thanks again for the response.

I double-clicked my .tnt file, entered the Username and Password, checked the "Remember Password", selected OK (which logged me in), then did File...Save. Next, I did "exit" to log off of the Linux server, and answered "yes" to the AT "Do you want to exit?" dialog.

After that I double clicked that same .tnt file, and up came the SSH2: Authentication dialog with blank Username and Password fields.

Steve Wyatt
sywyatt (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2334
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Check the authentication options on the Options->Properties->Connection->SSH2 page. Make sure 'use last username' is selected and not 'prompt for username'. 'prompt for username' will *ALWAYS* prompt for username/password, even if you previously selected 'remember password'.

Brian
bpence (Admin)
Admin
Posts: 1341
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.  
#2335
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Brian:

Thanks again. That was the answer I needed.


We work too much, don't we.


Steve Wyatt
sywyatt (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2336
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Way too much.... :(
bpence (Admin)
Admin
Posts: 1341
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.  
#2337
Re:Scripting with SSH2? 10 Years, 10 Months ago  
Thanks again Brian.

Steve Wyatt

;)
sywyatt (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2620
Re:Scripting with SSH2? 9 Years, 2 Months ago  
Hi Brian,

I am using ver 9.15 and don't have an option for using the last username on the SSH2 page. its there for SSH1.

Is this deprecated in this version?

David
drussell (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2623
Re:Scripting with SSH2? 9 Years, 2 Months ago  
That's very odd. Can you give me a screen snapshot?

Brian
bpence (Admin)
Admin
Posts: 1341
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