Downloading files via SSH

Discussion in 'General Linux' started by nathan, Mar 23, 2012.

  1. nathan

    nathan New Member

    Joined:
    Mar 23, 2012
    Messages:
    6
    Likes Received:
    0
    How can I download files from my server to my desktop via Putty?

    I had a restore deployed by Godaddy to the root of my server, the only way I can browse to the files is via SSH via Putty.


    I need to download 1 folder and all files inside it. Can't find a solution to this.
     
  2. dale

    dale Member

    Joined:
    Mar 23, 2012
    Messages:
    115
    Likes Received:
    7
    So basically the setup is:
    1. The server, with the files you need at /
    2. The desktop, which uses PuTTY to connect to server

    Are you able to FTP to server from desktop?
     
  3. nathan

    nathan New Member

    Joined:
    Mar 23, 2012
    Messages:
    6
    Likes Received:
    0
    Yes, I have FTP access to my server. But for security reasons you cannot FTP to the root of the server.
     
  4. dale

    dale Member

    Joined:
    Mar 23, 2012
    Messages:
    115
    Likes Received:
    7
    But you could move or make a copy of the file to wherever it is safe to download, no?
     
  5. nathan

    nathan New Member

    Joined:
    Mar 23, 2012
    Messages:
    6
    Likes Received:
    0
    Yes that's what I'm trying to do.
     
  6. dale

    dale Member

    Joined:
    Mar 23, 2012
    Messages:
    115
    Likes Received:
    7
    For example's sake, let's assume your restored files are stored here, under root (represented by "/"): /restored_files

    And you can FTP safely to your home directory, e.g.: /home/nathan

    To copy the entire directory and its contents to /home/nathan, you would:
    Code:
    cp -R [i]from to[/i]
    For example:
    Code:
    cp -R /restored_files /home/nathan
    This will create a copy of restored_files and place it under /home/nathan.
     
  7. Rob

    Rob Administrator Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    599
    Likes Received:
    267
    You can use scp or rsync.

    Or - sounds like you're in windows.. use winscp. Pixture it like putty for file xfers.
     
  8. Akendo

    Akendo New Member

    Joined:
    Feb 12, 2012
    Messages:
    135
    Likes Received:
    7
    putty has no scp support for Windows, else use winscp. When not, use like the other recommend. Anyhow, the best is using ssh via shell(bash).

    so far
    akendo
     
  9. DarthVader3257

    DarthVader3257 New Member

    Joined:
    Mar 4, 2012
    Messages:
    45
    Likes Received:
    2
    You should easily be able to SSH if you have the right tools of doing so. I myself have SSHed some of my Apple products, and it's actually quite useful in looking into something if there is a problem with whatever you are trying to SSH with. Good luck!
     

Share This Page