Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

So I have a small little Ubuntu server set up, with some rather large files that I've allowed a few people to copy from their putty window.

Anyways 2 questions: Lets say a person on windows wants to copy a file using putty from an Ubuntu server. how would they do it? and what directory would it default too? (what would the command be even? would I use SCP?)

Second question: is there like a limit? these are mostly 1-2gb files. would that cause any issues? Thanks

share|improve this question
    
for windows people I recommend they use WinSCP or perhaps an ftp client that supports sftp, like filezilla all of this really just uses scp. –  xenoterracide Mar 25 '11 at 1:13
add comment

2 Answers

up vote 3 down vote accepted

You can try PSCP which comes as part of the PuTTY distribution.

The usage of pscp is:

pscp [user@]host:source target

For example, from a Windows cmd prompt, type the following command to transfer a file to your C: drive.

pscp username@host:/path/to/file.txt C:\temp\file.txt

I don't believe there is a file size limit.

share|improve this answer
    
Could also use psftp, which some people might find easier (myself, I prefer the scp mechanism). –  Arcege Mar 24 '11 at 16:00
add comment

The default will be the home directory of the linux server account being used. So if a person used luser@yourserver:foobar.pdf, then the file would be taken from/placed at ~luser/foobar on yourserver.

If you do not want people to be able to write to your server, then I suggest locking down the directories/files and/or settings up a callback script inside the .ssh/authorized_keys file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.