![]() ![]() Copying files from a remote server to another remote server The command is simple, just remember that now you are declaring the remote server's file path and local server's directory to copy. Scp _server_IP:/remote/file.txt /local/directory This is basically the vice versa of the previous command, you can check the syntax below: ![]() As soon as you enter it, the file transfer begins and you will be able to see the progress bar as well.Ĭopying files from a remote server to a local server Once the command is executed, you will be asked to confirm if you want to continue the connection.Īre you sure you want to continue connecting (yes/no)?Įnter "yes" and you will be prompted for a remote server password. The example shows how a file "1G.test" is being copied to a remote server's /home folder. Make sure it is created on the remote server. remote/directory - this is the directory path that a file will be copied to. Remote_server_IP - the IP of a remote server ![]() Remote_server_username - the user that you will be using to connect to a remote server, for example, root Test_file.txt - a file that is being transferred Scp test_file.txt _server_IP:/remote/directory Copying files from a local server to a remote serverīelow is the syntax for the command to copy local data to another server This method requires access to both servers, so you won't be able to transfer files without having access to the remote servers. SCP(Secure Copy) is an easy way to transfer files between two servers that uses SSH so it provides the same level of security. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |