![]() ![]() Transfer Files from Remote Server to Local Machine Use the bye command to close the connection (SFTP session). Verify if the file has been copied or not by running the ls command: sftp> pwd Notice that we did not provide any path on the remote machine, so the file got copied in the remote machine’s current directory. Uploading netflix_ to root/netflix_ 100% 1207KB 1.5MB/s 00:00Īs you can see, using the put command, we have successfully transferred the file netflix_ from our local machine to the remote machine. ![]() Sftp> lcd /Users/kovid/Projects/ServerMania Log in to the server to access the SFTP prompt and navigate to the local directory, which has the file to be transferred: Connected to 172.105.186.216. Transfer Files from Local Machine to Remote Serverįirst, let us see how a file can be transferred from a local machine to a remote machine using the secure file transfer protocol. Now that you know how to navigate the file system of both the local machine and the remote server, you will learn how to transfer files from one to another. Local working directory: /Users/kovid/Projects/ServerMania In the following code snippet, you can see the examples of some of the commands mentioned above run on the SFTP prompt: ░▒▓ ~/Projects/ServerMania
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |