![]() ![]() ![]() Note: You can use asterisk(*) to download multiple files, like *.fasta.gz.Īlso you can follow the GUI tool "File Zilla" to perform the same task. Lets ssh-copy-id followed by the user name that you which to SSH as, followed. This command will download a file /data/ecoli_ from Amazon instance to your ~/Download folder in your laptop. Theres a simple helper command that makes this really easy, called ssh-copy-id. Similarly, to download a file from Amazon instance to your laptop: $scp -i ~/Desktop/amazon.pem ~/Download/ In this example, if ~/data/ was created by user “ubuntu”, it should be fine. I connect to my remote server using SSH, and I don't enter a password during login as I have setup a SSH key already. Note: You need to make sure that the user “ubuntu” has the permission to write in the target directory. Copy a file back to local system with ssh (10 answers) Closed 6 years ago. (In this example, it is the amazon.pem file in ~/Desktop/. Note you still need to use the private key you used to connect to the Amazon instance with ssh. To upload a file from your laptop to Amazon instance: $scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa command will upload a file - MS115.fa in your ~/Desktop/ folder of your laptop to folder ~/data/ on an Amazon instance. You can use this tool in a Terminal on a Unix/Linux/Mac system. “scp” means “secure copy”, which can copy files between computers on a network. Also we can use a GUI tool “FileZilla” to do the transfer, which is more user-friendly. ![]() **Transferring Files between your laptop and Amazon instanceįor linux/Unix/Mac system, we can use a command-line tool “scp” to transfer files between your laptop and Amazon instance. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |