scp to remote

Prev Next

The scpToRemote command is used to copy files to a remote location from /opt/scpfiles directory of the Linux based Manager.

Syntax:scpToRemote <file_name> <user_name> <remote_machine-ip> <filepath>

For scp to remote with a key: scpToRemote -i <path/to/key> <file_name> <user_name> <remote_machine-ip> <filepath>

Note

Ensure the key is FIPS compatible. To make the key FIPS compatible, refer to KB article KB94844.

The following table lists the parameters for scpToRemote command.

Parameters Description
file_name Name of the file to be copied to the remote machine
user_name Login username for the remote machine
remote_machine-ip Enter the IP address of the remote machine
filepath Location in the remote machine to copy the file
<path/to/key> File path in the Linux based Manager for the key

Sample Output:

IPSManager> show files

infoLogs_2018_11_26_07_29_54.tar

IPSManager> scpToRemote infoLogs_2018_11_26_07_29_54.tar root 10.1.1.1 /root/

FIPS mode initialized

The authenticity of host '10.2.1.2 (10.2.1.2)' can't be established.

ECDSA key fingerprint is SHA256:tv30NNgsRMY6U+UNOEAU+/WFhFXPn4KABrMxNbHK9qY.

ECDSA key fingerprint is SHA1:heXX04NJBvbz+mv22LlSYwWN7MQ.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '10.2.1.2' (ECDSA) to the list of known hosts.

root@10.1.1.1's password:

infoLogs_2018_11_26_07_29_54.tar 100% 6220KB 11.2MB/s 00:00