|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
Running Login Scripts within SSH?
Paul W. - Thu 04/10/2012 17:08:43 CEST +0200
Hi all,
I'm using KiTTY and scripting to back up our network switch configurations on a daily basis. A batch script starts a TFTP server service and then calls a series of KiTTY commands with the parameters needed and the command scripts. Each command script logs in to the network switch and runs a command to upload the configuration to the TFTP server. Then the script closes down the TFTP server service and moves the downloaded configurations to another folder. It works great... thank you for such an awesome product that allows scripting! I'd like to do the same thing with our routers. But by necessity the routers do not have telnet enabled on them, only SSH and only from certain internal IP addresses. I went to set this same thing up and discovered that I cannot use the scripts with SSH. Is there any way to make that work that I'm not already seeing? Thanks, in advance! -Paul - Thu 04/10/2012 17:35:28 CEST +0200
You can you use scripts with SSH.
The difference is that with SSH, authentication is fully part of the protocol. So that you can't use script to authenticate. You must define username and password, or use agent. Then after authentication, scripts will work. Paul W. - Thu 04/10/2012 19:26:13 CEST +0200
The key was knowing that I had to use the saved username/password information in the KiTTY profile. I tried it and it works!
Thanks! -Paul Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/17 04:31 -- en -- 216.73.217.18 -- |
||