How to make an SSH connection via Terminal Proxy
  • 2 minutes to read
  • Dark
    Light
  • PDF

How to make an SSH connection via Terminal Proxy

  • Dark
    Light
  • PDF

Article Summary

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:

  1. Open the command prompt app of your preference.
  2. Enter the following command to enter the vault:
    1. ssh senhasegura_user@senhasegura_vault
      Info

      The senhasegura_user field is the username used to access the vault. The senhasegura_vault field can be the hostname or IP address of the vault to be accessed.

    2. Press the Enter key.
    Info

    When 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.

  3. Enter your password.
    1. Press the Enter key.
      Attention

      If the use of the OTP token is registered, it’ll be requested after entering your access password. Enter the token number and press the Enter key so that the senhasegura shell be displayed.

  4. The senhasegura shell home screen will be displayed.
  5. Type list so that the list of available credentials and devices is displayed.
    Info

    If 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.

  6. After choosing, type:
    1. ssh credencial@target_device (hostname or IP address).
    2. 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.

Info

To learn how to configure SSH keys, access the documents on this topic available at SSH Keys.

StringDescription
ssh_key_nameName of the credential registered via SSH key.
senhasegura_vaultHostname or IP address of the senhasegura vault.
target_deviceHostname or IP address of the device you want to access.

Instance access:

ssh ssh_key_name@senhasegura_vault

Access to another device:

Attention

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

Attention

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:


Do you still have questions? Reach out to the senhasegura Community.


Was this article helpful?