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 ...
- 03-31-2009 #1Just 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.
- 03-31-2009 #2Linux 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
- 03-31-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 4
I got this:
-bash: pscp: command not found
- 03-31-2009 #4Just 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.
- 03-31-2009 #5Just 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.
- 03-31-2009 #6Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
- 04-01-2009 #7
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


Reply With Quote
