1
1
I want to copy files securely from one computer to another, the other computer however isn't trusted and I don't have direct access to it other then giving the owner of the computer instructions. In addition to that this is a one-time only situation, so any cumbersome setup should be avoided. What would be the easiest and most portable way to do it?
What I have in mind would be a program with the following workflow:
The host with the files issues a hypothetical command to make the files available, protected with a password:
file-offer -p PASSWORD file1 file2 file3 directory
The other issuse a hypothetical command with the password to receive a file (a GUI to select files would be welcome as well):
file-receive -p PASSWORD file2
The closest thing I have right now is this hack, which works but isn't very comfortable and would give Windows users some trouble:
tar cf - [files]... | gpg -c --passphrase PASSWORD | nc -l -p 6666
nc host1 6666 | gpg --passphrase PASSWORD | tar xf - [files]...
Some more notes:
- neither of the users has root access (so no servers accessing ports < 1024)
- copying files prior to making them available should be avoided (i.e. no
cp files /var/www/
) - ssh/scp doesn't work as that would require giving the password of one host to the other
- using rsync with rsyncd.conf mostly works, but is cumbersome to setup and doesn't provide a way to share a single file, only directories
- a ftp/http server that could be launched and configured with a single command line could work, https support for encryption would be welcome as well as a way to share single files instead of just directories, don't know any server that fits these criteria
- USB isn't an option as the other host might only be available over the network
- a file upload service isn't an option either (file size limits, upload to untrusted third party, user might be on LAN, not the Internet. etc.)
I have problems with your first sentence. You can't do anything securely on or with an untrusted computer. Could you define what you mean by "securely"? – David Thornley – 2009-09-16T14:05:26.017
By "securely" I simply mean that the files should not be interceptable by a third party (i.e. having encrypted transmission and password protected access would enough to accomplish that).
By 'untrusted' I simply mean that I can't trust the other user, the computers themselves are fine (i.e. doing scp wouldn't work since either I would have to give him my password or he would have to give me his). – Grumbel – 2009-09-16T14:15:53.880
So by "untrusted" you mean that you can trust the other user with these files, but not with any other sensitive personal information? – David Z – 2009-09-16T20:59:48.810
Yes, exactly. – Grumbel – 2009-09-17T02:29:17.967