Use Okta Advanced Server Access or Okta Privileged Access to Copy Files Using SCP or SFTP
Last Updated:
Overview
Administrators can use Okta Advanced Server Access (ASA) or Okta Privileged Access (OPA) to copy files to other machines using Secure Copy Protocol (SCP) or Secure File Transfer Protocol (SFTP). Configure the client by generating a Secure Shell (SSH) configuration file and using a proxy command or specifying the configuration file directly during the transfer.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Advanced Server Access (ASA)
- Okta Privileged Access (OPA)
- Secure Copy Protocol (SCP)
- Secure File Transfer Protocol (SFTP)
- Windows Client
Solution
How are files copied using SCP or SFTP in Okta Advanced Server Access or Okta Privileged Access?
Generate the Secure Shell (SSH) configuration from the command line interface and configure the proxy command or specify the configuration file by following these steps.
- Run the following command from the command line interface to generate the configuration:
sft ssh-config
- Copy the output from the command.
- To use the configuration by default, configure the ProxyCommand setup by creating a file named
configin the user.sshfolder and pasting the copied output into the file.- Windows file location:
C:\Users\Administrator\.ssh\config
-
- Linux file location:
/home/Administrator/.ssh/config
- Run the SCP or SFTP command normally and authenticate with the Okta Advanced Server Access or Okta Privileged Access account using the following syntax:
<scp OR sftp> <local file to copy> <target server>:<target server location>
- Alternatively, to specify the configuration manually, create a file on the desktop, paste the copied output into the file, and run the following command:
<scp OR sftp> -F <Full path of created file> <local file to copy> <target server>:<target server location>
