How To Use scp


How To Use scp

Secure copy protocol is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell protocol. "SCP" commonly refers to both the Secure Copy Protocol and the program itself.

Commands

-scp /root/1.txt root@remote-ip:/root/testtry

-scp test.txt username2@remote_host:/path

-scp *.txt username2@remote_host:/~/

-scp test.txt username2@remote_host:/user/home/user1test.txt

-scp -P 2205 test.txt user2@remote_host:/path/

-scp user1@host1.com:/files/test.txt user2@user2.com:/files




There are no comments yet.
Your message is required.
Markdown cheatsheet.