There are so many ways to achieve this.
Pay attention if you use custom fields to store passwords. It is not secure. But if you will not share your Royal Document File it is ok to use passwords in custom fields. Just use a strong master password in your Doc.
In my case I solved it like this:
Assuming I have a gateway 192.168.0.2 (jump server) and want to connect to 192.168.0.3. Both with user and password.
- create a credential (named C1 in this example)
– add username and password for jump server
– add password for 192.168.0.3 in the Passpharese field (in Private Key File section)
– save
- create a terminal connection
– computer name use 192.168.0.3
– credentials use the credential above
– SSH -> advanced inform “Additional SSH Options”: -A -J [email protected]
– save
- create a key sequence task
– use direct mode - no confirmation
– key Sequence: {WAIT:3000}$EffectivePassphrase${ENTER}
When you double click the created connection:
– double click on the key sequence created above
– it will enter the password and hit enter automatically
If you want everething automatically just add the above key sequence on your terminal connection
– tasks -> key sequence –> Use an existing key sequence task -> assign your task
This way when you double click the terminal it will end on the desired host automatically.
Pay attention that this is not the best way. If your gateway host is offline Royal TSX will print the password on your screen. But you can create a pre connection task to avoid this behaviour.