Also, the user should have write access to the directory in which you want to save the file.Īfter issuing the above-mentioned command, the system will ask you for the remote user's password. Keep in mind that the user must exist on the remote server if you want to transfer the files successfully. The destination path is separated from the remote host details using the colon character ( :). In the above command, user is the username and remote-host is the domain name. You have to specify the username and domain name of the remote server as well. And the destination is the path of the file on the remote host. Note that the source is the path of the file on your local storage. To upload a file named document.txt to a remote host: scp /home/ document.txt /home/ document.txt If you are a server administrator, then transferring files between a local host and remote hosts might be useful to you. The basic syntax of the scp command is: scp Transfer From Local Host to a Remote System Using the scp command, you can transfer files between:
0 Comments
Leave a Reply. |