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:

  1. Open Xshell.
  2. Click File, and then Open.
    RESULT: Sessions dialog box opens up.
  3. Select a session that will be an intermediate server. (Server B)
  4. Right click on the session, and then click Properties.
    RESULT: Session Properties dialog box opens up.
  5. Click Logon Scripts.
    RESULT: Logon Scripts page opens up.
  6. Select the Execute the following Expect & Send pairs. 
  7. Click Add.
    RESULT: Wait & Response Rule dialog box opens up.
  8. 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.
  9. 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
  10. Repeat steps 9 and 10 for password and other commands.