How to Move Files from Server to Local Machine and Vice Versa (using Windows)

  • Download Putty Portable (along with pscp.exe)
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

  • Open command prompt (run as admin)
  • Type the following command
        pscp [username]@[server]:[source_directory] [target_directory]

        For example,

        Username:               xxx
        Server:                     directory.ac.uk
        Source directory:     /home/file.csv
        Target directory:      C:\file.csv

        To download file.csv to local machine, the command will be:
        
        pscp xxx@directory.ac.uk:/home/file.csv C:\file.csv

        Similary, if we want to upload the file.csv to the server, the command will be:

        pscp C:\file.csv xxx@directory.ac.uk:/home/file.csv


Hope that helps!



Reference: 


Comments

Popular posts from this blog

Adding a Dashed Connector in Draw.io

DBeaver / PostgreSQL: "Error: database already exists" Workaround

How to Get The Replication Factor of HDFS Files