#1
|
|||
|
|||
SSH to a UNIX server via a gateway machine
Hi,
To connect to my target machine, I have to first to one or more gateway server(s). In order to automate the process I have written a vbs script to logon to each gateway server in turn and sending the password as required via the WaitForStrings method. This is an example of what I am trying to do: I am running SecureCRT on my PC, a. I want to log onto UNIX server b. To reach server b I first need to log onto server C. From a's SecureCRT, I create a session onto C. Then the script issues a "ssh b" and when b prompts for a password the script sends it. Is there a smarter way of doing this via SecureCRT? I know I can make the servers "trusted ssh" but this is not allowed by the site. Also I know I can use ssh tunnelling but once again this is not allowed by the site. |
#2
|
|||
|
|||
I worked for a company that did it that way for a while. basically I just stayed logged into the gateway box. Pretty much what your doing now... I can't think of another way ATM.
|
#3
|
|||
|
|||
Hi phillip,
It does sound like, within the restrictions you have described, the scripting method you have implemented is the most effective way of accomplishing what it is you are looking to do. Is there anything about this method that is currently not working for you? |
#4
|
|||
|
|||
SSH via gateway machine
My chosen method does work OK most of the time.
As with anything that waits for prompts you can get synchronisation problems. Also prompts can change or you get unexpected response like change your password. |
#5
|
|||
|
|||
Hi Phillip,
While it may be difficult to make provisions for every eventuality, there may be a way to deal with some of the irregularities that may be encountered. Would you please post your script, so that I can determine if there might be an easy way to accomplish this? |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|