Hardware key scp and rsync
- trezor-agent
- Is the command-line tool used to manage Trezor hardware key.
- -e ed25519
- specifies the type of cryptographic key used to authenticate the SSH connection.
- user@host
- This specifies the username and hostname of the remote server we want to connect to.
- -- scp
- This option tells Trezor-agent to use the SCP protocol for file transfer.
- local-file.txt
- This is the path to the file we want to transfer.
- user1@server:/home/user1/
- This is the destination path where we want to copy the file on the remote server.
Command Example, transfer a file;
trezor-agent -e ed25519 user1@httpd.hiddenssh.net -- scp file.txt user1@httpd.hiddenssh.net:/tmp/file.txt
Command example, transfer a directory;
trezor-agent -e ed25519 user1@httpd.hiddenssh.net -- rsync -avzP local-directory/ user1@httpd.hiddenssh.net:/tmp/local-directory/