- 1 minute to read
- Print
- DarkLight
- PDF
How to transfer a file in Terminal Proxy sessions using SCP 2.0
- 1 minute to read
- Print
- DarkLight
- PDF
This document provides information about a step-by-step guide on how to perform file transfer using SCP command in remote Terminal Proxy sessions.
Requirements
- Terminal Proxy type credential active.
Transfer via SCP
To transfer a file using SCP from a workstation to a destination server, two steps are required.
- In the first step, the file is uploaded to senhasegura using the user's terminal proxy.
- Second step, the user must connect to senhasegura Terminal Proxy to upload the same file to a destination server.
To use the scp
command, use the syntax below, replacing the strings with:
String | Description |
---|---|
file_name | File to be transferred. |
senhasegura_vault | Hostname or IP address of the senhasegura vault. |
senhasegura_user | User of the senhasegura vault. |
path_file | The location where the file to be transferred is. |
path_file_destination | The location where the file should be transferred. |
credential | Credential username. |
device_ip | IP address from the device. |
Access using Proxy 2.0
Using Proxy 2.0 when transferring files via the Terminal Proxy in which the accessed device has more than one type of registered connectivity, the user will have to inform the protocol that will be used and the port to make the connection.
- Open the application command prompt of your preference.
- Enter the following command line to upload from a file to the senhasegura instance:
scp file_name senhasegura_user[credential@ip_device{ssh.22}]@senhasegura_vault:path_file
- If you are using the multi-tenant, the tenant name must be entered after the senhasegura user:
scp file_name senhasegura_user%tenant_name[credential@ip_device{ssh.22}]@senhasegura_vault:path_file
- Enter your password.
- Press the Enter key to start the upload.
- Enter the following command to download a file from the senhasegura instance to the requestor's workstation:
scp senhasegura_user[credential@ip_device{ssh.22}]@senhasegura_vault:path_file path_file_destination
- If you are using the multi-tenant, the tenant name must be entered after the senhasegura user:
scp senhasegura_user%tenant_name[credential@ip_device{ssh.22}]@senhasegura_vault:path_file path_destination_file
- Enter your password.
- Press the Enter key to start the download.
The SCP syntax doesn’t support Multihop connection string, so these two steps become mandatory. Use SFTP transfer for a better experience.
The senhasegura Terminal Proxy also offers another type of file transfer via SFTP, to find out how to perform this, access the How to transfer a file in Terminal Proxy sessions using SFTP 2.0 document.
Do you still have questions? Reach out to the senhasegura Community.