- 2 minutes to read
- Print
- DarkLight
- PDF
How to make an SSH connection via Terminal Proxy
- 2 minutes to read
- Print
- DarkLight
- PDF
In this document, you’ll find a step-by-step guide on how to make an SSH connection via Terminal Proxy.
Requirements
- Have a command prompt-type application installed on the machine.
SSH connection
To make an SSH connection to a device that has this connectivity linked to a valid credential, you’ll need to run the command ssh
followed by the credential and device as is done in a standard SSH connection. Follow the steps below:
- Open the command prompt app of your preference.
- Enter the following command to enter the vault:
ssh senhasegura_user@senhasegura_vault
InfoThe
senhasegura_user
field is the username used to access the vault. Thesenhasegura_vault
field can be the hostname or IP address of the vault to be accessed.- Press the Enter key.
InfoWhen accessing the device for the first time, a reliability warning will be displayed, type
yes
and press the Enter key. The warning will no longer be displayed the next time this device is accessed. - Enter your password.
- Press the Enter key.Attention
When your password is reset or expires, the terminal will display a message warning that the password needs to be changed and display the steps that the user must take to register a new password through the web interface.
- Press the Enter key.
- The senhasegura shell home screen will be displayed.
- Type
list
so that the list of available credentials and devices is displayed.InfoIf you already know the credential (username) and the device (hostname or IP) that you want to access, it’s not necessary to use the command
list
. - After choosing, type:
ssh credencial@target_device
(hostname or IP address).- Press the Enter key.
After these steps, the connection via SSH to a device is ready for use.
Access using SSH key
There is also the possibility of accessing with SSH keys, using the following syntax according to the desired access, replacing the strings with the values described in the table below.
To learn how to configure SSH keys, access the documents on this topic available at SSH Keys.
String | Description |
---|---|
ssh_key_name | Name of the credential registered via SSH key. |
senhasegura_vault | Hostname or IP address of the senhasegura vault. |
target_device | Hostname or IP address of the device you want to access. |
Instance access:
ssh ssh_key_name@senhasegura_vault
Access to another device:
When accessing another device with an SSH key, always use the word key\
.
ssh key\ssh_key_name@target_device
Access to another device or when a key and credential have the same name.
ssh key\ssh_key_name@target_device
Depending on the operating system used, the use of the backslash ( \ ) is necessary for the command to work correctly.
To access the target device in applications that don’t provide interactive prompts or if you don’t want to go through the senhasegura shell screen, use the Multihop. Access the specific documentation to learn how to make this type of connection.
The senhasegura Terminal Proxy also offers other types of connections, such as:
- SSH Multihop connection via Terminal Proxy
- TELNET connection via Terminal Proxy
- Transfer files in Terminal Proxy sessions via SFTP
- Transfer files in Terminal Proxy sessions via SCP
Do you still have questions? Reach out to the senhasegura Community.