Find the answer to your Linux question:
Results 1 to 7 of 7
Google is just not doing it for me today. Not sure if this is the correct place to put this, but I'm looking for an example of the syntax of ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4

    putty download/upload syntax

    Google is just not doing it for me today.

    Not sure if this is the correct place to put this, but I'm looking for an example of the syntax of how to get a file from a linux box using putty, and upload a file.

    I think I'm getting close:

    cp 1_0_4.png c:\tiles

    At least, it no longer complains when I type that in.

    Thanks.

  2. #2
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    The putty command to copy from another server is pscp. The syntax would look something like:

    Code:
    pscp username@host:/path/to/1_0_4.png c:\tiles

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4
    I got this:

    -bash: pscp: command not found

  4. #4
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4
    Pretty much got it.

    Browse to windows directory where you want the file
    open command prompt (was using putty window before)
    start psftp.exe
    and then it's "get filepath/file" and it drops in whatever folder you were in when you opened the command prompt.

    to upload it's "put"...haven't tried it yet though.

  5. #5
    Just Joined!
    Join Date
    Mar 2009
    Posts
    4
    Actually it was more involved. I'll add the details in case a newb like me reads this.

    Browse to windows directory where you want the file
    open command prompt

    [windows filepath]>"c:/program files/putty/psftp.exe" (quotes are for the space)
    psftp> cd [server filepath]
    psftp> ls (directory)
    psftp> mget * (grabs everything in the folder)
    or
    psftp> get [server path]/filename] (grab single file)
    or
    psftp> put [windows path]/filename] (puts file up on server)


    So basically "get" and "put" with the filepath/filename of where it is coming from and it defaults to placing it in the directory you started the command prompt in in windows, or the file you went to on the server.

  6. #6
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Quote Originally Posted by kjamieson View Post
    I got this:

    -bash: pscp: command not found
    Sorry, forgot to specify the path to pscp.

    Code:
    "c:\program files\putty\pscp" username@host:/path/to/1_0_4.png c:\tiles

  7. #7
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    If you prefer GUI's to CLI utilities, i'd suggest you download WinSCP. It is built very much like putty (on the inside) but it allows you to use scp, sftp, regular ftp, and any of the ssh authentication methods to transfer files. It is a very clean application too IMO.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...