• Support
  • Articles
  • Resources
  • Products

MACRO for SSH - over 1000 devices

Moderator: boris

  • 1
  • 2

30 postsPage 2 of 2


Joined: Sat Sep 19, 2009 12:19 pm
by ciprian_s » Mon Oct 12, 2009 2:58 pm
Hello Boris, hello everyone !

Well, I'm back from a little vacation :oops: and I've tried the new version of the script, it works fineeee ! :D I hope you are all ready for the next challenge. Regarding this script, I have received another task : authentication with more than 1 password. I will explain this request in the following lines :

- If the script tries to connect to an ip address, but the password is not good, it should try another password. It don't need a list of potential passwords, i need the script to try connect to the ip address (if the device is reachable at ping) with only 2 passwords.

- so the short version : tera term connects to the ip, tries with user : admin and password : aaaa and if the password is not ok the script should try with user : admin and password : bbbb.

That would be all. Is there a command for this multiple password issue ? Does anyone of you have any ideas ?

Thanks and best regards !


Joined: Sat Sep 19, 2009 12:19 pm
by ciprian_s » Mon Oct 12, 2009 3:15 pm
Ohh .. another thing to add, just to make sure !

The script connects to the ip, tries the user : admin and password : aaaa, the "authentication failed" popup window appears, so in that moment the script should close that popup and try to connect to the same IP address with user : admin and password : bbbb.

I will continue my search but if anyone has any ideas, they are very welcomed to share.


Moderator, LogMeTT and TTLEditor developer

Joined: Sat Jan 08, 2005 2:52 pm
by boris » Mon Oct 12, 2009 3:16 pm
There are no special commands for multiple passwords. After sending the 1st password use wait with 2 parameters and analyze the response from the host. If it asks for password again - supply it. If not - continue. wait description in teraterm.chm file contains the example of the code.

In future please create separate topics for different questions. Do not combine topic by macro, but by question. This will benefit other users and will simplify the search within existing posts.
Best regards,

Joined: Sun Feb 19, 2012 2:11 pm
by bedo1976 » Sun Feb 19, 2012 2:36 pm

Yes, the option /nosecuritywarning works. But this option is not included in the HELP of teraterm so I had to look at the forum for this importand setting ;-((.
Yutaka Hirata
TeraTerm Developer

Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Mon Mar 26, 2012 2:47 pm
Hi everyone,

It seems that this hidden option is in high demand, so I have
added the description below document.

http://ttssh2.sourceforge.jp/manual/en/ ... ttssh.html

However, this option would be not used due to the security
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
Display posts from previous:
Sort by:
  • 1
  • 2

30 postsPage 2 of 2

Users browsing this forum: No registered users