To access Server A, I need to make a connection from Server B. How can I configure Xshell to directly connect to server B?
To connect to Server A through an intermediate server, Server B, you can use the Wait & Response feature. Please follow the instruction below:
- Open Xshell.
- Click File, and then Open.
RESULT: Sessions dialog box opens up. - Select a session that will be an intermediate server. (Server B)
- Right click on the session, and then click Properties.
RESULT: Session Properties dialog box opens up. - Click Logon Scripts.
RESULT: Logon Scripts page opens up. - Select the Execute the following Expect & Send pairs.
- Click Add.
RESULT: Wait & Response Rule dialog box opens up. - In the Expect field, type in the last few characters of the shell prompt
Ex: If your prompt says [oracle@OTS oracle]$ , then you should write oracle]$.
NOTE: This is the last line you see on the Xshell terminal when you login to the destination server. - In the Response field, type in the SSH or Telnet command you use when connecting to the destination server.
Ex: ssh John@192.168.1.193 - Repeat steps 9 and 10 for password and other commands.