|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
Example Script File for autologin with wait for special prompt before send
cem - Wed 09/05/2012 20:20:25 CEST +0200
Hi @all,
I want to establish ssh Session to different device. Before i send username and password i want to wait for a special prompt from the remote device. It was not possible for me to create a valid script file. As i understood it right from the Forum the script file is a textfile, right? But my script file do nothing??? send nothing! Can someone send / post a script file for the case to wait for a special string, please. I tried lot of things but without success. Thanks and Best Regards Cem An Answerer - Thu 10/05/2012 10:15:11 CEST +0200
The script takes the form
eg: login: myusername password: myPas5w0rD So when you connect with this script, the script will wait until it sees the first prompt "login:", and will then send "myusername", and will then wait until it see "password:" and will then send "myPas5w0rD", and so on. You can make this as long as you like. Each 2 line pair are handled in turn after the previous 2 line pair has been used. Cyd - Thu 10/05/2012 11:01:18 CEST +0200
Look at the web page http://www.9bis.net/kitty/?page=Logon%20script&zone=en
The autologin script feature can be used for TELNET authentication, not for SSH. For your information authentication is fully part of the SSH protocol. That's why there are "username" and "password" in Connection/data config box. An Answerer - Thu 10/05/2012 15:14:43 CEST +0200
This would be required if you are bouncing through boxes, so you might use a script like this:
$ ssh username@server password: mypassword $ cd /opt/jboss That sort of thing. Cem - Thu 10/05/2012 21:18:59 CEST +0200
Thank you very much for the answers. The key point which was not clear to me was that i have to copy the needed string from the remote device also in the *.txt file. quite straightforward :).
One additional problem was that i use ssh. But it works now. Thanks @all Cem - Wed 16/05/2012 14:39:07 CEST +0200
Hi @all,
me again... When I want to share the settings with other persons, then it seems to be mandatory that they install /copy the Files in the same place e.g C:/MyConnections. When they copy the file in D:/YourConnections it doesn?t work due to the reference doesn?t match anymore. Where the settings are saved in kitty, or is there an possibility to modify/replace this afterwards easily without modify every scrip file reference. I checked the Windows registry fiels and ini Files but can?t find an entry. Cem - Wed 16/05/2012 14:43:34 CEST +0200
sorry. I found the entry in ...\Softwarebis.com\Kitty\Sessions.
It is really a pain to modify this entrys manually in the registry. Is there a another possibillity? Thx and Best Regards Cem Cyd - Wed 13/06/2012 09:37:46 CEST +0200
Unfortunately, there is no other solution
Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/21 12:04 -- en -- 216.73.217.18 -- |
||