Slashdot Mirror


Secure File Storage Over Non-Trusted FTP?

hmckee writes "Does any software exist that enables me to store/backup/sync files from my local computer to a non-trusted FTP site? To accomplish this, I'm using a script to check timestamps, encrypt and sign the files individually, then copy each file to an offsite FTP directory. I've looked over many different tools (Duplicity, Amanda, Bacula, WinSCP, FileZilla) but none of them seem to do exactly what I want: (1) multi-platform (Windows and Linux), stand-alone client (can be run from a portable drive). (2) Secure backup (encrypted and signed) to non-trusted FTP site. (3) Sync individual files without saving to a giant tar file. (4) Securely store timestamps and file names on the FTP server. Any help or info on alternative solutions appreciated."

384 comments

  1. I knew a guy who always had headaches by BadAnalogyGuy · · Score: 4, Insightful

    This guy was always complaining about headaches. He would constantly be pounding his head into his fist and whimper to me that he felt like his head would split open. He took pain killers all the time, and for a long duration was addicted to a certain prescription pain medication. But none of that helped because as soon as the medication started to wear off, the pain would come right back again.

    Finally, I had had enough of his complaining. I told him to stop pounding his head with his fist. Whaddayano! His headaches went away in a day.

    Moral of the story: Don't try to find workarounds for your problem. Fix the problem.

    1. Re:I knew a guy who always had headaches by elronxenu · · Score: 4, Funny

      The problem is asking questions to Slashdot?

    2. Re:I knew a guy who always had headaches by ettlz · · Score: 1

      A slightly less acerbic answer is "Get Python, and code it yourself, schmuck!"

    3. Re:I knew a guy who always had headaches by hmckee · · Score: 1

      Hey, I'm already doing that! The problem there is putting a Python installation on my portable drive.

      Anyway, the parent is absolutely correct about my problem IF I cared that much about my data. I could pay an extra $10 a month for SFTP/SSH service on my hosting account or use Amazon S3, but, really my data just isn't worth that much because it is personal files I already store in two other places.

      To me, the problem seems to be if someone has implemented a secure pseudo-filesystem over FTP. I tried looking for that but couldn't find anything.

      Thanks for the laughs.

    4. Re:I knew a guy who always had headaches by GigaHurtsMyRobot · · Score: 5, Funny

      If you don't really care about your data, why are you asking slashdot how to keep it safe? You already have the answer, it costs $10, now get off my lawn.

    5. Re:I knew a guy who always had headaches by ettlz · · Score: 4, Informative

      Hey, I'm already doing that! The problem there is putting a Python installation on my portable drive.

      What about Portable Python?

      To me, the problem seems to be if someone has implemented a secure pseudo-filesystem over FTP. I tried looking for that but couldn't find anything.

      If I understand your problem, you want the remote image encrypted, right? In which case SFTP/FTPS is redundant overhead (and whatever data is sent is stored in its plaintext). This is something that might be possible with FUSE (e.g., use the Python-FUSE bindings to construct an FTP client that passes stuff through GnuPG first).

      Thanks for the laughs.

      Heh, you'd be surprised how many people around here lack a sense of humour.

    6. Re:I knew a guy who always had headaches by stephanruby · · Score: 4, Insightful

      Yeah, I don't get this guy. First, he says he wants it for his home computer. Then, he says it has to be multi-platform (Windows and Linux) plus stand-alone that can be run from a portable drive.

      And I say why? Let's assume for a moment that this guy has two computers at home, one that runs Linux and one that runs Windows. He doesn't need an app that does everything perfectly on both platforms. He just needs an app that does it perfectly on one, and either one is fine really. If he prefers to use his Linux box to coordinate the secure backup to an untrusted FTP site, then he just needs to have his Windows machine send the data unencrypted over to his Linux box -- then his Linux box can just do the bulk of the job. Or if he prefers to do it the other way around and use his Windows machine to do the secure backup to the untrusted site, he can just use that and have his Linux box send the data unencrypted to his windows machine.

      And of course, why does it even need to go onto FTP instead of SFTP? Instead of wasting valuable man-hours reinventing SFTP from scratch, or finding someone else that has, he could just pay a few dollars to a provider who will give him SFTP. And if his current Provider won't do that, get an other additional provider that will do it. If backing up is really as important as he seems to make it, then spending a few extra dollars each month shouldn't be a problem.

    7. Re:I knew a guy who always had headaches by mccabem · · Score: 5, Funny

      #10,407's got you by 1,132,922 membership points, #1,143,329.
      #10,407 and #44,513 both want you off HIS lawn right now.

      Sincerely,
      Membership Police

    8. Re:I knew a guy who always had headaches by hmckee · · Score: 3, Informative

      I should have stated that the data wasn't THAT important since it's already backed up in two other places.

      I was initially using Amazon S3 to do the backups, but since I had 20 GB of spare storage on my hosting site, I figured someone else must have tried doing the exact same thing because it's the cheapest solution. It didn't take me long to write a small script to encrypt files and send them to the FTP server, another reason I figured someone else may have done this. So, rather than extending the script, I thought I'd "Ask Slashdot" to see if anyone else had completed the exercise.

      If it were REALLY important for me to have this storage, I'd go back to using S3 or spring an extra $10 a month to get my account upgraded to use SSH/SFTP.

      As it stands now, I may just get a kick out of implementing the project for fun.

    9. Re:I knew a guy who always had headaches by stephanruby · · Score: 1

      Yeah, but you still haven't said why you need it to be multi-platform.

    10. Re:I knew a guy who always had headaches by coleblak · · Score: 1

      upload them to a gmail account wit?

      --
      77 HITS
      Really Long Off Topic Combo
    11. Re:I knew a guy who always had headaches by n3tcat · · Score: 1

      That was a pretty bad analogy

    12. Re:I knew a guy who always had headaches by hmckee · · Score: 3, Informative

      You are correct, the access from Windows is really of secondary concern. Still, it would be nice to access the data from work or the wife's computer.

      I should have also added that I asked the question to see how much flaming and ridicule I could draw by asking about such a cheap-ass, overly complex solution that is simply solved by SSH/SFTP. :)

    13. Re:I knew a guy who always had headaches by ettlz · · Score: 1

      In which case SFTP/FTPS is redundant overhead

      I take that back, it secures the auth bit.

    14. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      tell that to people running various companies.
      they never seem to realize that asking to develop a hackish and complex solution for something they are too lazy to fix or re-arrange is the devil and asking for major trouble.

    15. Re:I knew a guy who always had headaches by gmack · · Score: 3, Informative

      The real problem is not knowing about rsync since it's designed for exactly his problem.

    16. Re:I knew a guy who always had headaches by SleepyHappyDoc · · Score: 1

      Having two computers, one running Windows and one running Linux, is not at all unusual. Especially with those netbooks with Linux on them being all the rage right now.

      --
      Stasis is death. Embrace change.
    17. Re:I knew a guy who always had headaches by Bastard+of+Subhumani · · Score: 5, Funny

      "Get Python, and code it yourself, schmuck!"

      You appear to have misspelled "perl".

      --
      Only three things are certain; death, taxes, and apocryphal quotations - Ben Franklin.
    18. Re:I knew a guy who always had headaches by jetole · · Score: 3, Informative

      The problem is FTP. It is an old deprecated protocol that is inherently insecure and even FTP w/ SSL is simply a work around to a broken problem. As long as you are using insecure FTP then you are officially screwed and I seriously doubt any company is making product when they know FTP has the SSL option (which is a work around but it works). The real answer to your problem is use a secure protocol like SSH which does everything you just asked for natively. Now because I just posted two easy answers to your dilemma, tell me why my company would write and sell complex time stamping encrypting whatchyamacallit software for FTP transfers? This question was already answered a decade or two ago.

    19. Re:I knew a guy who always had headaches by thegrassyknowl · · Score: 3, Insightful

      The real answer to your problem is use a secure protocol like SSH which does everything you just asked for natively.

      Does it encrypt and sign the files one-by-one so that the admin of the remote site (who you don't trust) can't read, alter or share them on you?

      --
      I drink to make other people interesting!
    20. Re:I knew a guy who always had headaches by RulerOf · · Score: 1

      tell me why my company would write and sell complex time stamping encrypting whatchyamacallit software for FTP transfers

      Not that it's actually a good idea, but one of my company's clients requires that we make certain files available via FTP. On a public IP address. With a really, really shitty password :P

      --
      Boot Windows, Linux, and ESX over the network for free.
    21. Re:I knew a guy who always had headaches by Bozzio · · Score: 2, Insightful

      is the password "cleartext"? Because it is.

      Sniffing FTP passwords is a joke!

      --
      I just pooped your party.
    22. Re:I knew a guy who always had headaches by brasscount · · Score: 1
      Nope, that's why you get GPG, and encrypt your stuff before you store it on the intertubes. Use a good encryption algorithm, and the FTP to you hearts content, because its encrypted before you sent the file.

      Just store your keys somewhere special. My favorite forensics story begins with the guy who encrypted his private key to "keep it safe."

      He didn't store a copy first.

      --
      Confidentiality, Integrity, Availability: without Availability the other two are assured, as is Bankruptcy.
    23. Re:I knew a guy who always had headaches by hairyfeet · · Score: 3, Interesting

      Like pretty much every SMB I have ever worked on. It is really a shame there isn't an easy native way to run VB code in Linux,because every single SMB I walk into has some damned VB3-6 app that holds that place together. Worse is it always seems to be written by a guy named Chuck that worked there ages ago and didn't know WTF he was doing. I swear I opened up the last VB4 one to convert it to VB6 and try to fix the crashing and was like "OMFG! Tap dancing Christ what was this guy thinking! Was he high?".

      The ENTIRE first page was nothing but a giant mess of GOTO calls. I'll admit I'll throw in about one GOTO per app just to do a quick function call,but DAMN. The entire first page was GOTO here,then GOTO there,then GOTO somewhere else. Luckily like a good 75% of VB apps out there it was a GUI connecting to a database so I was able to whip off a replacement. But it would be nice if just once they brought in an actual coder to write a program instead of clueless chuck. But as always this is my 02c,YMMV

      --
      ACs don't waste your time replying, your posts are never seen by me.
    24. Re:I knew a guy who always had headaches by B'Trey · · Score: 3, Insightful

      The problem is FTP. It is an old deprecated protocol that is inherently insecure and even FTP w/ SSL is simply a work around to a broken problem.

      Wow. It might be better to understand the problem before you make suggestions. FTP isn't the problem. FTP is just a way to move files from here to there. It's unsecured and untrusted but, in this case, SO IS THE REPOSITORY. Exactly what benefit do you get from using SSH to securely transfer files to an unsecure location? That's like using an armored truck to move your valuables to the QuickStorage down the road. What's wanted is an automated way to encrypt the files locally, then transfer the encrypted files to an untrusted site. If the files are encrypted, then it doesn't matter that FTP is unsecured.

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    25. Re:I knew a guy who always had headaches by B'Trey · · Score: 4, Insightful

      The real problem is not knowing about rsync since it's designed for exactly his problem.

      No, rsync isn't a very good solution for a couple of reasons. First, unless there's some capabilities that I'm not aware of, rsync has no encryption capabilities. Given an unencrypted file tree and an encrypted version of the file tree, rsync has no way to compare the two for changes. The only solution to that which I see is to maintain a local encrypted mirror of your file tree. So then you need twice as much space, since you're maintaining two local file trees, and you need a tool to update automatically sync the local file tree and the local encrypted version of the file tree. If you have that tool, then it may work or be hacked to work with a remote file tree, completely removing the need for rsync. Even supposing that you found a tool to do that which won't work with a remote file tree, you're nullifying the primary advantage of rsync.

      rsync is designed to do incremental updates. If you have a text file and change one word, rsync doesn't transfer the whole file. It only sends enough info to correctly update the remote file so that it matches the new local file. (Or vice versa, of course.) But when you change a single word and reencrypt a text file, the whole file changes. So rsync will have to transfer the whole file. So will any other solution, of course, but it does mean that rsync loses much of the capability which makes it so valuable.

      You could do something like unencrypt the local file tree mirror, rsync with the working file tree, reencrypt the file tree and then rsync the local encrypted tree with the remote encrypted tree mirror, but that's a lot of work and processing power and hardly matches the clean, integrated solution that the article is asking for. It's probably more cumbersome than whatever it is he's doing now.

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    26. Re:I knew a guy who always had headaches by Slurpee · · Score: 4, Funny

      go home kids. You can come back and play in the morning.

    27. Re:I knew a guy who always had headaches by bhtooefr · · Score: 1

      It's easy to sniff an FTP password, though, and if there's backups being done to this non-trusted server, one could very easily delete the user's files.

      Gotta tunnel it over SSH to keep that password safe.

    28. Re:I knew a guy who always had headaches by B'Trey · · Score: 1

      I can't speak for this guy, but there are times when I want to access stuff from my work computer or someone else's computer, where I'm not authorized to install software and have no control over the OS.

      Nowhere do I see that it only needs to work on one home computer. He just specifies "from my local computer to a non-trusted FTP site."

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    29. Re:I knew a guy who always had headaches by Dekortage · · Score: 1

      What about something like CrashPlan, JungleDisk, or even Mozy? I haven't used these, but am seriously considering adding one of them to my existing backup system. CrashPlan lets you decide who hosts your data (them, a friend with free disk space, whatever); JungleDisk relies on Amazon's S3 service, and Mozy is its own thing...

      --
      $nice = $webHosting + $domainNames + $sslCerts
    30. Re:I knew a guy who always had headaches by geminidomino · · Score: 1

      Python is PERL for the masses.
      PERL is Python for the elite.

    31. Re:I knew a guy who always had headaches by X0563511 · · Score: 1

      The original questioner is doing this currently, GPG and then FTP to remote location.

      They are looking for some kind of automated system that can handle mirroring like rsync, but do all the gpg magic too.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    32. Re:I knew a guy who always had headaches by Lord+Ender · · Score: 1, Flamebait

      Perl is the fortran of the very-high-level scripting languages. There is no reason to develop new code in perl. Knowing the language is useful only to maintenance programmers.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    33. Re:I knew a guy who always had headaches by ettlz · · Score: 1

      Then cue the Revolution.

    34. Re:I knew a guy who always had headaches by mishehu · · Score: 4, Informative

      It appears that there are options for rsync encrypting files on the far end. rsyncrypto might be just one of these. I have not used them but I remember them coming across my 'radar screen' in the past.

    35. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      There's a difference between transport security and storage security. Learn it.

      Even if you're using an encrypted transport like SFTP, your files will be stored in the clear on the host. If you want to prevent others who have access to the host (legitimately or illegitimately) from getting your data, you *also* need to encrypt the contents of the files. This is what the guy's entire post is about, but I guess you didn't read it.

    36. Re:I knew a guy who always had headaches by nbvb · · Score: 1

      Yeah, and I've got you beat too. I don't remember appointing you the Membership Police.

      I have absolutely nothing productive to add to this conversation.

      Your point?

    37. Re:I knew a guy who always had headaches by B'Trey · · Score: 4, Insightful

      Interesting. Things like this are why I always hedge my bets and say things like "...unless there's some capabilities that I'm not aware of, rsync has no encryption capabilities..."

      That being said, I'd be extremely leery of this program. The website says: "Rsyncrypto does, however, do one thing differently. It changes the encryption schema from plain CBC to a slightly modified version. This modification ensures that two almost identical files, such as the same file before an after a change, when encrypted using rsyncrypto and the same key, will produce almost identical encrypted files." I'm far from an expert at crypto but I know enough to be extremly suspicious of that claim. A "slight change" in an encryption algorithm can be enough to transform an algorithm from highly secure to trivially crackable. And I strongly suspect that making similar files produce similar encrypted files means that there's a great deal of info about the unencrypted file suddenly available from examining the encrypted file. I wouldn't trust this without extensive review from some heavy weights in the crypto field.

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    38. Re:I knew a guy who always had headaches by MagdJTK · · Score: 2, Interesting

      Gah. I wish people wouldn't keep trying to use public key encryption when it's not needed. Public key encryption is used to get around the key distribution problem. Signing is used because anyone can easily encrypt stuff using your public key and you can't guarantee they are who they say they are.

      From what I can tell, he's not sending these files to anyone. He's uploading them and the only person who will access them will be himself. This is exactly what regular, symmetric encryption is for!

      Encrypt the files using AES or Blowfish or a combination. Truecrypt may be handy though I'm sure there are many other implementations. If you're keen on security use a password and a randomly generated keyfile which you keep safe on a USB stick (with multiple backups of course). The person on the other end obviously can't open the files without the key (which would take NSA millions of years to brute force). If he changes the files in some way then you won't be able to decrypt them with your key so you know something's up. No need for signing, GPG or anything particularly clever. As for sharing, who cares? Noone will be able to open them; that's the point of encryption.

    39. Re:I knew a guy who always had headaches by Sancho · · Score: 1

      Subscriber IDs are overrated.

    40. Re:I knew a guy who always had headaches by irc.goatse.cx+troll · · Score: 1

      The thing is you don't need this to all be in one platform. You could for example back up with a perl script on linux then pull the backups via a web interface on windows.

      --
      Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    41. Re:I knew a guy who always had headaches by poot_rootbeer · · Score: 2, Insightful

      Does it encrypt and sign the files one-by-one so that the admin of the remote site (who you don't trust) can't read, alter or share them on you?

      If you don't trust the remote server, why the fuck would you consider using it as a backup site?

      There isn't an encryption/protection scheme possible that will prevent the remote admin from outright deleting whatever files on his own filesystem that he wishes to. Oops, no more backups.

    42. Re:I knew a guy who always had headaches by MrNaz · · Score: 1

      If the remote server only offers FTP, there's no way to ensure no hops are done in cleartext.

      Personally, I'd mount the remote FTP site to a local drive using WebDrive for Windows or something similar for Linux (SSHFS does not do vanilla FTP, although I'm sure there's a tool that does if you look around) and then install TrueCrypt or some other file based encrypted filesystem.

      That way you can mount an encrypted remote file system on the remote site and sync it using rsync or any other garden variety file sync tool.

      Of course, don't start whining about performance when you start using it as scratch space for Photoshop.

      --
      I hate printers.
    43. Re:I knew a guy who always had headaches by MrNaz · · Score: 1

      Had I seen you post, I'd have replied with my proposed solution to you directly. You can see it here:

      http://tech.slashdot.org/comments.pl?sid=648583&cid=24644779

      Basically:
      1. Mount remote FTP site to local drive/mount using something like WebDrive
      2. Install TrueCrypt or some other file based encrypted FS on the mounted volume
      3. Use any old regular sync tool to sync files to what now looks like a regular local volume but is infact your remote FTP space.

      --
      I hate printers.
    44. Re:I knew a guy who always had headaches by ashp · · Score: 5, Funny

      In my day we tied an onion to our belts..

    45. Re:I knew a guy who always had headaches by vrmlguy · · Score: 2, Informative

      From http://rsyncrypto.lingnu.com/index.php/Algorithm: "The entire rsyncrypto can be summarized with one sentence. Rsyncrypto uses the standard CBC encryption mode, except every time the decision function triggers, it uses the original IV for the file instead of the previous cypher block."

      So you're basically dividing each file into chunks and encrypting them separately using the standard algorithm. Seems pretty safe to me. The only obvious leakage is that an attacker can tell if two files are substantially identical. In this, it is similar to ZIP files whose members are encrypted.

      The decision function is that used to periodically reset gzip: the sum of the previous 8196 bytes is evenly divisible by 4096. Personally, I'd have used the same Adler-32 algorithm that rsync uses internally.

      --
      Nothing for 6-digit uids?
    46. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 1, Interesting

      I use rsync with encryption all the time.
      http://troy.jdmz.net/rsync/index.html
      And I am syncing pictures (binary files) I take when I am away from home, it works pretty well for me.

    47. Re:I knew a guy who always had headaches by bfizzle · · Score: 3, Funny

      Worse is it always seems to be written by a guy named Chuck that worked there ages ago and didn't know WTF he was doing.

      The best part is everyone loved Chuck and thought he was some tech god. The second you bitch about the beautiful VB Chuck wrote you are now seen as incompetent.

      I feel your pain.

    48. Re:I knew a guy who always had headaches by Sloppy · · Score: 2, Interesting

      Yep. I spotted that problem too. The fact that he has the requirement to use non-trusted FTP (i.e. can't install openssh) strongly suggests this ftp server is someone else's. His backup could vanish at any moment. Since he can't rely on this, then he'll still need to backup somewhere else too. So why not switch his attention to that "somewhere else"?

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    49. Re:I knew a guy who always had headaches by nabsltd · · Score: 1

      First, unless there's some capabilities that I'm not aware of, rsync has no encryption capabilities. Given an unencrypted file tree and an encrypted version of the file tree, rsync has no way to compare the two for changes. The only solution to that which I see is to maintain a local encrypted mirror of your file tree.

      You could use the encrypting file system available on Linux and rsync the encrypted file tree instead of the going through the "decrypting mount".

    50. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 3, Interesting

      Here's a review of rsyncrypto that also says it isn't really secure:

      For an example of an information leak, suppose you have an XML file and you use rsyncrypto to copy the file to a remote host. Then you change a single XML attribute and use rsyncrypto to copy the updates across. Now suppose an attacker captured the encrypted versions in transit, and thus has copies of both the encrypted file before the change and after the change. The first thing they learn is that only the first 8KB of the file changed, because that is all that was sent the second time. If they can speculate what sort of file the unencrypted file was (for example, an XML file) then they can try to use that guess in an attempt to recover information.

      Rsyncrypto encrypts parts of the file independently, thus keeping any changes you make to a single block of the file local to that block in the encrypted version. If you're protecting a collection of personal files from a possible remote system compromise, such a tradeoff in security might be acceptable. On the other hand, if you cannot allow any information leaks, then you'll have to accept that the whole encrypted file will change radically each time you change the unencrypted file.

    51. Re:I knew a guy who always had headaches by ryder · · Score: 4, Funny

      get offa my lawn!

    52. Re:I knew a guy who always had headaches by Bastardchyld · · Score: 2, Funny

      Seriously though, where else would he keep his pr0n if not on your Mom's XP box?

      --
      $diff terrorists hippies
      $
      $rm -rf *terrorists *hippies
    53. Re:I knew a guy who always had headaches by B'Trey · · Score: 2, Insightful

      I haven't read the page in detail but this appears to be a tutorial on using rsync over ssh. That would encrypt the transmission but it wouldn't result in an encrypted file on the other end. Am I missing something?

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    54. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 1, Informative

      A rolling block cipher that does not use previous data as a seed for future blocks will be 'secure' while reducing the extent of the changes in the crypt to the blocks that were touched. The information that is made available to attackers is the relative location of changes in your source, with the granularity of the block size of the crypto. This may be useful in some circumstances, perhaps.

    55. Re:I knew a guy who always had headaches by B'Trey · · Score: 2, Insightful

      It might be safe but unless you're quite knowledgeable about encryption, gut feelings about what seems safe aren't very reliable. I still suspect that doing this opens up more areas of attack. Note that I'm making no claims of expertise, so I don't KNOW this to be the case. I'm just saying that I'd be leery.

      --

      "The legitimate powers of government extend only to such acts as are injurious to others." Thomas Jefferson.

    56. Re:I knew a guy who always had headaches by mdmkolbe · · Score: 4, Informative

      Rsyncrypto is insecure. By resetting to the IV, it opens an information leak similar to the one with ECB mode (see the picture of the penguin on that page).

      To see why CBC with occasional reset-to-IV is insecure (regardless of trigger function), consider a long repeating pattern of the same bytes (e.g. the white spaces in the penguin picture). CBC won't encrypt them to the same value (like ECB does), but every time the IV resets the same sequence of encrypted bytes will appear. This pattern is detectable and further the places where this pattern is disrupted is detectable. So going back to the penguin picture, the non-background portions will have a shadow that disrupts the repeating background pattern and revealing the content of the file.

    57. Re:I knew a guy who always had headaches by Sun · · Score: 4, Informative

      Note - I'm the one who designed and wrote rsyncrypto.

      The only obvious leakage is that an attacker can tell if two files are substantially identical.

      Well, no. Two files will likely be encrypted using different session (read - AES) keys, and therefor will not be even remotely similar. One file having two significantly similar areas will show up, however. This case was deemed somewhat remote in my analysis. You are free to perform your own, of course. If you do, please feel free to email me.

      The only place where actual data leakage may happen are due to the fact that a persistent attacker can compare cipher texts, and know where the decision function triggered. This is a good point to ask "how much information is gleaned about the file".

      I think current rsyncrypto is ok on that front, and future plans include improvements. These improvements, alas, will cost in performance.

      Shachar

    58. Re:I knew a guy who always had headaches by Zerth · · Score: 1

      He can rely on them for backup, but he can't rely on them to be discreet and not browse the files.

      Perhaps he is backing up medical/financial data and doesn't want to get HIPPwned.

    59. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      So you're basically dividing each file into chunks and encrypting them separately using the standard algorithm. Seems pretty safe to me.

      The IEEE did a lot of work on block encryption over the last little while. The author of this program may want to look into:

      http://en.wikipedia.org/wiki/IEEE_P1619
      http://en.wikipedia.org/wiki/Disk_encryption_theory

    60. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      IIRC, that's game over.

      You can't re-use IVs, or you wind up leaking secret info all over the place. Depending on the algorithm, it's either the key or all the plaintext (both versions)

      At the best case, he's turned it into a ECB implementation.

    61. Re:I knew a guy who always had headaches by Sun · · Score: 1

      Wellllll.....

      It would be true, except rsyncrypto compresses before encryption. Compression has the great side effect of reducing the repeats in the plain text, which means that you are much less likely to see the effects you describe. The Tux image at wikipedia, for example, will have to be several GB in size, possibly even TB, before you will notice any such effect (and by "notice", I do mean "a program can detect them", not "see with the naked eye").

      Using the default rsyncrypto parameters, the repeats will be about 12KB long, which means that your compressed plain text need to have 12KB repeating at least three times for this effect to even show up. Depending on how compressible your data is, this means anything from 36KB to several megabytes (if not more).

      The size mentioned is tweakable through the --roll-win, --roll-min and --roll-sensitivity command line options, so you can have a more paranoid setting, if you want. It goes without saying that the more paranoid your setting, the less traffic rsyncrypto will save you when used through rsync.

      Shachar

    62. Re:I knew a guy who always had headaches by ThanatosMinor · · Score: 1

      After reading this post, I have decided that BadAnalogyGuy is probably the most appropriate username I've seen here.

    63. Re:I knew a guy who always had headaches by spiffmastercow · · Score: 1

      so why not set up a cron job to do it at 2 am, when he won't notice the bandwidth?

    64. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      Not 'home computer' - he specifies 'local computer' and it probably doesn't matter SFTP vs. FTP since the encrypted file storage matters more.

    65. Re:I knew a guy who always had headaches by X0563511 · · Score: 1

      I don't know. I was just correcting someone who didn't read the question properly, I myself don't have any answers.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    66. Re:I knew a guy who always had headaches by mxs · · Score: 1

      The problem is FTP. It is an old deprecated protocol that is inherently insecure and even FTP w/ SSL is simply a work around to a broken problem.

      You are quite correct, sir. Now, how many hosting providers do you know that do NOT offer FTP ? How many that offer different kinds of upload capabilities ? Calculate the ratio and see why this is still being used. Storage can be quite a lot cheaper if you are willing to work around the idiosyncracies of your hosting provider.

      As long as you are using insecure FTP then you are officially screwed and I seriously doubt any company is making product when they know FTP has the SSL option (which is a work around but it works). The real answer to your problem is use a secure protocol like SSH which does everything you just asked for natively.

      Actually it does absolutely NOTHING he needs. Remember, the operator of the backup-server is untrusted. It's not "only" the in-transit-data being sniffable that is worrisome, but also the backup service provider; be it because you fear that they might get broken into (hosting multiple customers on the same machine), or that you just cannot legally trust any third party with your highly sensitive databases of personal data (your wedding pictures ? :P)

      Now because I just posted two easy answers to your dilemma, tell me why my company would write and sell complex time stamping encrypting whatchyamacallit software for FTP transfers? This question was already answered a decade or two ago.

      No, it wasn't. SSH does nothing for data integrity, incremental updates, data authenticity, data secrecy, secure timestamping, etc.

      Duplicity does a lot of it, and I'd like to hear why the OP thinks it does not fit this task. It has an FTP-backend, it signs & encrypts, it has variable volume sizes, etc.

    67. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      If backing up is really as important as he seems to make it, then spending a few extra dollars each month shouldn't be a problem.

      Interesting philosophy coming a group that's too cheap to pay for an operating system....

    68. Re:I knew a guy who always had headaches by mxs · · Score: 1

      Look at duplicity again. (1) It is multiplatform (Python exists for Windows, as do all the supporting tools; I've successfully run it in cygwin). I'm sure you can put cygwin on a portable thumbdrive or even tailor it so you only have duplicity on there. (2) Is a given, with duplicity. Full GPG encryption and signing, FTP backend (and S3, scp, etc.) (3) Duplicity has variable volume sizes. If you set this to 5MB (hardly giant), you can get away with fetching that when updating(assuming you have the filetree-cache on your local drive; otherwise you'll have to reget that as well) and uploading a small tar with that single change. Duplicity doesn't do individual-file-backup like you may have mentioned; This is not a very good idea anyway, though. If you do not trust your hosting provider, this will give them more information to work with -- sizes of files can give a lot away; identical files are encrypted identically, too. This is a rather sizable information leak. (4), again, is a given.

      If you forego the multiplatform-ness, you could use FuseFS on your Linux box and mount an encfs on top of a ftpfs and rsync to that. I did this once with a webdavfs; it works, but is slow.

    69. Re:I knew a guy who always had headaches by sydneyfong · · Score: 1

      Sounds about right.

      The coder must have graduated from BASIC, where GOTOs are the crux of the language.

      --
      Don't quote me on this.
    70. Re:I knew a guy who always had headaches by Leebert · · Score: 3, Insightful

      What's wrong with using a public key for the backups? That's what I do.

      If you're using purely symmetric encryption for your backups, you have to store the keys somewhere, and that somewhere has to be online when the backup is generated. Then you have to physically move it somewhere that it's not reachable. It's a manual process.

      With a public key system, you can store your private key offline all of the time, and not have to deal with symmetric key management. GPG does that for you.

      Where is the downside?

    71. Re:I knew a guy who always had headaches by ryder · · Score: 3, Funny

      We were lucky to have onions! And belts? Luxury. But you try telling that to the kids today and they'll never believe you.

    72. Re:I knew a guy who always had headaches by Kazoo+the+Clown · · Score: 1

      While I agree the guy's questions are a bit hard to get, there's one real good reason to avoid SFTP-- all readily available implementations are a hell of a lot slower than FTP. And the OpenSSH community doesn't seem to have much interest in addressing it. HP came up with a performance patch some time ago (HPN-SSH), but I don't think it's ever been folded into the main source tree-- certainly it's not easy to get an already built Windows version with the patch applied, so for the most part, only developers have it. Even then, the reports I've read about it don't measure up to FTP, so where performance is crucial it will be hard to move away from FTP.

    73. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      Brackup - http://search.cpan.org/~bradfitz/Brackup/

      Solves all the problems you described and additionally comes from the same chap who created the ever popular memcache software

    74. Re:I knew a guy who always had headaches by multimediavt · · Score: 1

      BTW, he's already copying whole files if he's FTPing them, so that's not really an issue for this guy.

    75. Re:I knew a guy who always had headaches by multimediavt · · Score: 1

      Subscriber IDs are overrated.

      So are most /. responses in forums.

    76. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      Actually, PERL is an improper way of referring to Perl, the high-level programming language.

    77. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      rsync over ssh. I use it almost everyday. Learn Unix you guys.

    78. Re:I knew a guy who always had headaches by toddestan · · Score: 1

      The coder must have graduated from BASIC, where GOTOs are the crux of the language.

      Or never graduated at all, in the case of Visual Basic.

    79. Re:I knew a guy who always had headaches by hogger · · Score: 1

      you need to do a little more research on rsync, ssh, cygwin, public/private keys, etc... a rsync+ssh solution does everything you are asking for. cross platform. encrypted. partial-file changes are efficient. easily scheduled.

      i have setup exactly what you're wanting several times, on a variety of platforms with rsync and ssh.

    80. Re:I knew a guy who always had headaches by Techman83 · · Score: 1

      Spaghetti Code FTW!! :P

      --
      # cat /dev/mem | strings | grep -i cat
      Damn, my RAM is full of cats. MEOW!!
    81. Re:I knew a guy who always had headaches by thegrassyknowl · · Score: 1

      He can rely on them for backup, but he can't rely on them to be discreet and not browse the files.

      Perhaps they are a shitty online backup provider who provide an SLA and agree to archive your backups to tape but their SLA also doesn't grants them the right to investigate the content of your files? (Yes, I know one solution where that is actually the case, and yes they did snoop, no I won't say who).

      --
      I drink to make other people interesting!
    82. Re:I knew a guy who always had headaches by edittard · · Score: 1

      Nope, you lost me there. Try telling us which is a BMW and which is a skateboard.

      --
      At the bottom of the /. main page it says 'Yesterday's News'. Well they got that right.
    83. Re:I knew a guy who always had headaches by Anonymous Coward · · Score: 0

      TIMTOWTDI, bitch!

    84. Re:I knew a guy who always had headaches by hairyfeet · · Score: 1

      Actually that isn't really fair,as I have seen plenty of well coded VB apps,just not at SMBs. Just like you wouldn't want a doctor doing heart surgery with a chainsaw,the key with VB is knowing when NOT to use it. Too many try to make some gigantic multi-function desktop/server hybrid app and needless to say it falls like a house of cards. What VB is wonderful for is whipping off quick single function applications and for making a GUI frontend to a database. I'll give an example I wrote: A junkyard needed a way to be able to tell at a glance where a particular car was without having to walk around hunting it. I simply had them stick up simple signs with a letter/number scheme,A1-G6 and then we put the cars into a VB written GUI frontend. Now all the have to do is type the model of car and an image box gives them the letter number combo with the location. Very simple,very stable,easy to use. But as always this is my 02c,YMMV

      --
      ACs don't waste your time replying, your posts are never seen by me.
    85. Re:I knew a guy who always had headaches by Gr8Apes · · Score: 1

      Now that was insightful!

      --
      The cesspool just got a check and balance.
    86. Re:I knew a guy who always had headaches by ITTechPro · · Score: 0, Offtopic

      Why not use a secure online backup solution like www.onlinebackupvault.com online data backup these days cost pennies and ontop you will get more effeicient data storage as services such as backup vault compress and encrypt the data prior to transmission!

    87. Re:I knew a guy who always had headaches by gmack · · Score: 1

      Well the original poster did say FTP.

      As for the www.onlinebackupvault.com crud your shilling... It's windows only so useless for those of us who don't use windows on our servers.

    88. Re:I knew a guy who always had headaches by ZerdZerd · · Score: 1

      Does Duplicity do the same?

      --
      I'm not insane! My mother had me tested.
  2. Really is a pity by pembo13 · · Score: 4, Informative

    I have explicitly asked my web host provider for either SFTP or FTPS. They basically said that it wasn't possible to provide that on a shared host. This seems untrue to me, I just can't state it as a fact since I haven't attempted it myself. But to get what the OP wants, one would essentially need a secure file system implementation on top of FTP. Ie. only the client can see the unencrypted file, not the in between transport over FTP, or the server side disk drive.

    --
    "Thanks for all the money you paid to us. We've used it to buy off ISO among other things" -Microsoft
    1. Re:Really is a pity by ThePromenader · · Score: 5, Informative

      I'd translate "wasn't possible" to "couldn't be bothered". Once SSH installed (and it is there by default in most *nix distros), you have but one 'user' file to configure (to 'jail' you within a certain hierarchy). Ta-da! Change your host and use SFTP.

      --

      No, no sig. Really.

      ThePromenader
    2. Re:Really is a pity by Anonymous Coward · · Score: 1, Interesting

      Your webhost probably uses virtual accounts in the ftp server, or in some sort of db backend, that ssh can't talk to out of the box (ie not a real account). Plus, they don't want the overhead I guess, or the extra work for the 2 customers out of every 2000 who want it.

    3. Re:Really is a pity by EdIII · · Score: 4, Informative

      It is ENTIRELY possible to provide that on any host, regardless of the number of users. All you are asking (correct me if I am wrong) is that the connection between you and the FTP server is secured through SSH or TLS.

      That is trivial. Sounds like they cannot be bothered to enact rudimentary security. As a policy in my own systems, and any systems that I pay to use, I demand that any connections that go over untrusted networks be encrypted. There are so many products that help you do this it just makes their refusal all the more ridiculous. I have a product that does not support encrypted connections and I just stunnel to protect it.

      Anything less is just reckless. Tell them to protect your connection or you will get another provider. Simple as that.

    4. Re:Really is a pity by Anonymous Coward · · Score: 0

      Why would you need sftp, if you encrypt the data before sending it's safe at transfer and at storage on a (public?) ftp server.

    5. Re:Really is a pity by Anonymous Coward · · Score: 0

      wow pembo13, I'm really surprised you don't know that. You generally seem to be pretty on top of things. But it does make me feel better about you marking me as a foe. Out of all of the people that have marked me as such, yours is the most confusing. But I guess if you don't know much about SFTP, I'm just going to assume that it was your mistake. Or maybe you just think I'm a jerk, you jerk.

      hearts and kisses

      Your foe.

      PS Don't drink the coffee tomorrow.

    6. Re:Really is a pity by Rufus211 · · Score: 1

      They might be telling the truth, depending on how they share the hosts and how they have logins setup.

      HTTPS is not possible with virtual hosts (where foo.com and bar.com are both running on 1.2.3.4). The reason being is that the HTTP server doesn't know if you're talking to foo.com or bar.com until after the connection has started, but it needs to send out one of their certificates in order to get the connection started.

      I'd guess FTPS has the same issue, as the FTP server won't know what to respond as. SFTP/SSH do not have this issue since there are no 3rd party certificates that identify the server.

      So basically if they let you SSH into the box, you can do SFTP and it'll just work. If they don't let you SFTP into the box and you're on a shared host with a shared IP address, they can't set it up to login directly to your account. They could setup ftps://ftp.myhost.com/foo.com or something, but that's a completely different infrastructure they might not have.

    7. Re:Really is a pity by KGIII · · Score: 1

      It is closer to ftps:/myhost.tld/~username with *most* hosting accounts. And no, it is not financially viable nor does it mean safety. What *trust* would mean is that the OP would need would be their own dedicated IP and those are supposed to be justified. The easiest justification is a security certificate. If they have one, and their own dedicated IP address, then they should be all set to roll with SFTP. If not, move to a real hosting company.

      --
      "So long and thanks for all the fish."
    8. Re:Really is a pity by Bert64 · · Score: 1

      That's absolute bullshit, and shows either incompetence or laziness on the part of your hosting company...

      Assuming the shared hosting is on a standard unix system of some description:

      Using an FTP server with SFTP support such as vsftpd is easy enough to setup, most ftp servers can be configured for sftp too.
      Setting up SFTP/SCP (which will be there by default as part of ssh) to restrict users to their homedirs is easy...
      Some shared hosting setups also use an http based file manager, which you could access over HTTPS.

      So they are either tied to some inflexible proprietary package, or they're incompetent/lazy... Getting themselves tied to an inflexible proprietary package also suggests laziness or incompetence too.

      I would suggest you find a better hosting provider. If users demand security and are willing to move to better providers then things will gradually improve.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    9. Re:Really is a pity by Bert64 · · Score: 1

      Plenty more customers will want it after their sites get defaced... How many website defacements are done by sniffing the user logging in?

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    10. Re:Really is a pity by dolmen.fr · · Score: 1

      SSH uses host authentication to warn you if the host key doesn't match the host key it got at the last connection.

      This doesn't work well with DNS based load balancing which most ISP use for FTP/SMTP/POP3/HTTP as you will get a different host everytime you connect to it.

      Also, encryption has a CPU cost that is not negligible at an ISP scale.

    11. Re:Really is a pity by Bert64 · · Score: 1

      You are semi right about HTTPS...
      It will have a certificate mismatch error, but it can still work.

      But who says you need to connect to your site by name? Most users don't do this anyway, they connect to whatever the upload server is called, and it will have an appropriately named certificate. Similarly with HTTPS, you could have a separate admin portal with HTTPS to which users log in.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    12. Re:Really is a pity by dolmen.fr · · Score: 1

      Just not safe against deletion or corruption if someone gets your password...

    13. Re:Really is a pity by legirons · · Score: 1

      I have explicitly asked my web host provider for either SFTP or FTPS. They basically said that it wasn't possible to provide that on a shared host.

      Maybe they were confusing it with HTTPS which can't be run on a shared host?

    14. Re:Really is a pity by mikep.maine · · Score: 1

      no SSH? remedy this by moving to a hosting company that does! I use mediatemple.net and am quite satisfied.

      --
      Mike www.sharecube.com
    15. Re:Really is a pity by Builder · · Score: 2, Interesting

      I fully agree with this provider. Providing shell access to a shared machine is madness and you cannot provide security for your users this way.

      SFTP requires that SSH be running, so there is always a risk of shell access being gained through breaking scponly or whatever other jail you use.

      Virtual machines are the only way I know of providing this, and they cost more because of setup / maintenance costs. Failing that, FreeBSD jails, but they are unpopular due to people wanting Linux hosting.

      You get what you pay for - live with it or pay more.

    16. Re:Really is a pity by Lord+Ender · · Score: 1

      Load balancers actually can cause trouble with protocols which use digital signatures (SSH or TLS) unless they are implemented properly.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    17. Re:Really is a pity by The+Cisco+Kid · · Score: 1

      They could implement it, but the SSL certificate would only be valid for one hostname. Eg, you'd have to (s)ftp to "ftp.hostingcompany.com", not "www.yourwebsite.com". While you may (or not) be able to grok that, most likely the vast majority of their customers would be totally confused and upset, thus costing the hosting company lots of expensive(?) tech support time. Easier for them just not to bother.

      If you really have data that you think that there is someone that has both the motivation to try to intercept it as you transfer it over the wire *AND* have access to the wires (either yours, the major net backbones, or your hosting company's) then your solution is to have your own server machine, which you then configure in any manner you want. If thats 'too expensive', then maybe your data isnt as valuable as you think. Also note that if someone had the motivation, breaking security at the webhost would be far easier than trying to intercept it over the wire.

    18. Re:Really is a pity by bfizzle · · Score: 1

      Much less than get defaced by weak passwords or SQL injection.

    19. Re:Really is a pity by jellomizer · · Score: 1

      They Lie Get an other hosting company. When they say it is not possible, then they are usually hiding the fact that their ISP is run by a bunch of idiots. SFTP is far superior and far more configurable then FTP ever was.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    20. Re:Really is a pity by Anonymous Coward · · Score: 1, Informative

      I fully agree with this provider. Providing shell access to a shared machine is madness and you cannot provide security for your users this way.

      The mostly recent version of OpenSSH can be configured to auto-chroot, without you having to set up a new environment for each user:

      http://undeadly.org/cgi?action=article&sid=20080220110039
      http://it.slashdot.org/article.pl?sid=08/02/20/1637259

      Jails or Solaris zones is another option as mentioned. Both Solaris and FreeBSD can run Linux binaries under emulation, otherwise POSIX is POSIX. The underlying OS shouldn't matter too much if you install the GNU environment (which isn't that difficult with Ports (and it comes with Solaris 10 by default)).

      How many people care what the OS is if all the proper PHP/Perl/Ruby/SQL modules are installed?

    21. Re:Really is a pity by Anonymous Coward · · Score: 0

      Erm, SSH works fine going to the Cornell ECE department's DNS load-balanced pools.

    22. Re:Really is a pity by Anomylous+Howard · · Score: 1
      Providing shell access to a shared machine is madness and you cannot provide security for your users this way.

      You are right! Unix was never designed or intended to be used as a multi-user environment! There are no admins who are capable of managing systems in this fashion.

    23. Re:Really is a pity by mxs · · Score: 1

      Anything less is just reckless. Tell them to protect your connection or you will get another provider. Simple as that.

      By the time you have had that exchange with them, you will have cost them more than you bring in, anyway.

      I agree that it's possible to offer encrypted connectivity. It is a bit more work, often not available for resellers, and very often not requested by users. You are the exception (whether that's because most users have no clue what encryption is about or just don't care, I don't know.); mass webhosters do not cater to the exception. The margins are extremely low, so it's not really worth having the discussion with the customer.

      Of course, most mass-webhosters will also ban you from their service if you actually decide to use the space provided, citing that you may only use it for a public website or some such bullshit, even after they promise, in writing, that you can use it for whatever the hell you like (Hello, dreamhost !). So to the OP : It may not be cheaper than going with S3, after all. Another option would be "premium" accounts at RapidShare.com (50GB) or MegaUpload.com (250gb) or other such services. Of course you wouldn't want to trust them, but using them for encrypted storage should be fine.

    24. Re:Really is a pity by Anonymous Coward · · Score: 0

      I ran into this with my hosting provider as well after my account was hacked via FTP, right after I had FTP-ed a bunch of data to my server. It was pretty clear that the hacker had sniffed my username and password as I had a long, strong password. I asked (very nicely - really!) for them to provide a more secure means of file transfer such as SFTP or rsync but it was always denied for similar reasons. After talking to many people at my hosting provider, someone finally admitted that they won't do it because their hosting software (hsphere) doesn't have hooks for administering the user accounts for SFTP or rsync. Frustrating! You'd think they'd want to make their machines more secure - especially against something as secure-less as FTP.

    25. Re:Really is a pity by Anonymous Coward · · Score: 0

      My host provides ssh access, but only after you provide a government ID proving who you are. It has to match the name on the account and the credit card used for payment.

      It doesn't prevent me from doing nasty things to others on the same host - or them doing nasty things to my app, but at least there's a feeling of accountability. Personally, I'd prefer a Xen host and root, but that costs a little more money that my company would rather spend on marketing right now. I can't say that I disagree with that alternate purpose.

    26. Re:Really is a pity by SanityInAnarchy · · Score: 1

      Change your host and use SFTP.

      So now you only have to trust the host. Which is a lot better than trusting anyone who sniffs you, I guess.

      Encryption is still relevant, even if you only have to trust the host. And if you're doing encryption anyway, it may well be cheaper to get FTP than SFTP.

      --
      Don't thank God, thank a doctor!
    27. Re:Really is a pity by SanityInAnarchy · · Score: 1

      SFTP requires that SSH be running, so there is always a risk of shell access being gained through breaking scponly or whatever other jail you use.

      FTP requires that some ftpd be running, and there's always the same possibility.

      Virtual machines are the only way I know of providing this,

      And they can be broken, too.

      A vulnerability is a vulnerability is a vulnerability. How is switching from this set of potential vulnerabilities to that set of potential vulnerabilities making you any more secure?

      --
      Don't thank God, thank a doctor!
  3. Errr by EEPROMS · · Score: 1, Troll

    Am I the only one thinking this is like someone saying they want privacy then running around butt naked then wondering how they can keep their privacy at the same time.

    1. Re:Errr by BadAnalogyGuy · · Score: 3, Informative

      No, it's more like someone running around naked outside holding a frosted pane of glass in front of them wondering if maybe they should also build a tool to hold a second pane of frosted glass behind them.

    2. Re: Errr by Whiney+Mac+Fanboy · · Score: 4, Funny

      Am I the only one thinking this is like someone saying they want privacy then running around butt naked then wondering how they can keep their privacy at the same time.

      And the answer of course is security through obscuring. Wear a mask ;-)

      (I guess you're not completely naked, but hey, close enough)

      --
      There are shills on slashdot. Apparently, I'm one of them.
    3. Re:Errr by twatter · · Score: 1

      Because of FTP? Maybe, but if the guy is moving encrypted tar files over FTP, then he's still secure.

      Even if his userid/passwd are compromised, his data wouldn't.

      Well, assuming he's using AES or something like that.

    4. Re:Errr by Anonymous Coward · · Score: 5, Insightful

      Even if his userid/passwd are compromised, his data wouldn't.

      So if someone used his userid/passwd to delete his archive or overwrite it, his data wouldn't be compromised?

      Or has the data no value, so the archive can be deleted/corrupted without loss? Then what is the use of archiving it at all?

    5. Re: Errr by houghi · · Score: 4, Funny

      A rabbi and a minister went swimming naked at a lake when some children came. Both ran out of the water to their clothes.

      The minister covered his 'private parts' while the rabbi covered his face. When the minister asked why the rabbi did not cover his genitals for the children, the rabbi said : "Hey they recognize me by the face."

      --
      Don't fight for your country, if your country does not fight for you.
    6. Re:Errr by hmckee · · Score: 1

      That was one scenario I hadn't thought of, but, since this is a copy of data I've already backed up in other places and check nightly, it's not a big deal if someone deletes it. Plus, it's not THAT valuable.

      That would be a pain if someone was deleting it everynight. :)

    7. Re:Errr by axlr8or · · Score: 0

      of course the arguments could go on forever, but while most people whine about RIAA and the government tapping lines and such, it might be thoughtful to remember that making a connection with another computer and having someone look at its content is invasive, and therefore none of your business. I think it would be more accurate to say, someone wanting privacy running around clothed and having someone rip their clothes off. Now that sounds better. And to make it return to the context of this thread; Running around clothed but on a street full of blood thirsty rapists. Now, that sounds more like the real internet.

    8. Re:Errr by hmckee · · Score: 1

      Thanks for the suggestion, but my wife will be upset if I start running around the front yard naked. I'll try to come up with something else.

    9. Re:Errr by Anonymous Coward · · Score: 0

      What you want is encfs: http://en.wikipedia.org/wiki/Encfs

      It's a fuse-based encrypted filesystem that works over a regular one. There's a one-to-one mapping between plaintext and ciphertext files so you can just backup bits that have changed via FTP.

      That said, do they really not have SSH (and hence scp & sftp)? Most providers these days would consider non-anonymous FTP a gaping huge security liability.

    10. Re:Errr by pla · · Score: 1

      Am I the only one thinking this is like someone saying they want privacy then running around butt naked then wondering how they can keep their privacy at the same time.

      Erm... No.

      Although he described it with way too much complexity, he just wants to do an "rsync -ac" using FTP as a transport and a source-encrypting input filter.

      He wants to do this because, in a move that should amaze most Slashdotters, he actually wants to keep good backups rather than mistaking softRAID across a few cheap SATA drives as a "backup" solution.

      Finally, he understands that off-site backups beat on-site backups, but secure offsite hosting doesn't come cheap. Easy solution? He plans to secure his own data, and store it in a relatively unprotected (but cheap) place.

      Honestly, it surprises me this hasn't come up more often. He has a good idea, and just wants to know if any single tools exist to do it better than rolling his own solution.

    11. Re:Errr by v1 · · Score: 1

      Although he described it with way too much complexity, he just wants to do an "rsync -ac" using FTP as a transport and a source-encrypting input filter.

      I was under the impression that he wanted the files, as stored on the host, to remain encrypted? I don't see an option on rsync to encrypt and send but not decrypt on the other end?

      Also of note, even if you DO encrypt the files, the directory structure and filenames will probably remain intact. While directory structure isn't terribly worrysome, filenames may be. OP says they do not want to make a single giant tarball'ish file either. I can't think of anything off the shelf that meets these requirements that is multiplatform.

      --
      I work for the Department of Redundancy Department.
    12. Re:Errr by Anonymous Coward · · Score: 0

      Am I the only one thinking this is like someone saying they want privacy then running around butt naked then wondering how they can keep their privacy at the same time.

      Just means they don't want to give you shell access, which for a shared host, I think is perfectly reasonable. You want a commandline, run your own server or pony up the cash for a dedicated one.

    13. Re:Errr by Anonymous Coward · · Score: 0

      Ah, apologies. I didn't double check that against all of your requirements, only some!

    14. Re:Errr by houghi · · Score: 1

      Indeed his data would not be compromised as in being in the hands of somebody else. The data would indeed be removed.
      e.g. they have 1.000.000 social security numbers and other personal data in several files. What you CAN do is delete the files (if you get the FTP login and password). What you can't do is read those files, because they are encrypted.

      --
      Don't fight for your country, if your country does not fight for you.
    15. Re:Errr by steelfood · · Score: 1

      The effectiveness of this solution depends on how close that pane of glass is to the person.

      --
      "If a nation expects to be ignorant and free in a state of civilization, it expects what never was and never will be."
    16. Re:Errr by hmckee · · Score: 1

      You've mostly summed up my situation. The other feature I'd like is the ability to treat the backup files as primary copies if I'm in another location then come home later and sync up to the modified version. It won't happen that often, but it sure would be nice.

  4. What is the problem? by Daehenoc · · Score: 1

    What are you trying to achieve? It sounds like there is a problem there that you are trying to solve, but I'm sure there could be a better approach than sending encrypted files to an insecure FTP site.

    1. Re:What is the problem? by Anonymous Coward · · Score: 0

      Thank you for your comment, really valuable.

      Why not just provide an answer instead of questioning the question?

    2. Re:What is the problem? by Anonymous Coward · · Score: 0

      Because the question is stupid?

  5. Rather than whupping an old horse... by ThePromenader · · Score: 1

    First off, everything you send over the web using the FTP protocol is non-encrypted - even your password. Secondly, to achieve your goal, you would need the modern-day technological equivilent of a '60's-era 'scrambler' telephone device - a coder on your end, and a decoder on the other (in this case, one on the server). I'm not so sure many hosts allow their clients to install programs on their servers (chuckle).

    All you desire exists in a protocol that uses one additional letter - sftp. Its existence is partly due to the weaknesses of FTP, so I wouldn't worry yourself over trying to make an older outmoded technology 'work'. If your host won't take the SFTP (SSH) protocol, I suggest you find another.

    --

    No, no sig. Really.

    ThePromenader
    1. Re:Rather than whupping an old horse... by z0idberg · · Score: 1

      Secondly, to achieve your goal, you would need the modern-day technological equivilent of a '60's-era 'scrambler' telephone device - a coder on your end, and a decoder on the other (in this case, one on the server). I'm not so sure many hosts allow their clients to install programs on their servers (chuckle).

      Are you reading the problem being he wants to encrypt -> ftp -> decrypt on the ftp host?
      Seems to me like he just wants to encrypt -> ftp the encrypted files onto the ftp host. No decryption required at that end, so no programs to be installed on the ftp host.
      The only place requiring decryption would be after pulling the files back off again.

    2. Re:Rather than whupping an old horse... by sumdumass · · Score: 1

      FTP send your user name and password unencrypted so encrypt->FTP the encrypted files->store on host encrypted wouldn't be secure if I was able to sniff your connection on either side. Unless that is if you don't mind me grabbing your files and attempting to break the encryption or just deleting them for you or maybe even infection them with some sort of trojan or worm so your compromised as soon as you restore the files or open them to browse through them.

      FTP on a non trusted site isn't a workable scenario if security is in your mind.

    3. Re:Rather than whupping an old horse... by Anonymous Coward · · Score: 0

      1. Please explain how one would trojan a piece of ciphertext?
      2. How many computer-hours do you have? Are you the NSA? Good luck cracking that elliptic-curve!
      3. Randomly deleting files? Why would you do that, when you can sit and use the space for a launching pad for your own attacks in his name, or quietly wait for him to goof and put unencrypted data up?

    4. Re:Rather than whupping an old horse... by sumdumass · · Score: 1

      1: any file can be infected with something. It would change it's characteristics from a pure text file to something else but it can be infected or replaced by a trojan that looks like the original file. In some OS's, changing a PIF or EXE to any other extension will still allow the execution of the file.

      2:, I don't need to be the NSA or have a super computer. I, or anyone determined enough can easily buy time on a large botnet or several smaller botnets and break it down.

      3: Why would I do that? why did virus's have destructive payloads? I mean there is no telling why someone could reason the destruction of someone else's data but we know it happen. It could be just a malicious script kiddie attempting to prove to his friends that he is Uber Kewl. The problem is that with FTP, the user name and passwords are open and it is in the realm of script kiddies. A seasoned hacker would probably do as you suggest but your basically saying look at my pin number at the ATM. Or more aptly, letting anyone wanting to look, know the combination to your school locker and expecting no one to pull pranks on you.

  6. Re:A slight oxymoron here. by Whiney+Mac+Fanboy · · Score: 5, Insightful

    "secure" and "untrusted" don't go hand in hand. If you want security, don't put things in untrusted spaces. Period.

    Are you sure about that? I consider my SSH connections secure even tho' they traverse untrusted links. Same goes for my encrypted mails, https connections to my bank, etc.

    Anyway, to the submitter - is areca close to what you want?

    --
    There are shills on slashdot. Apparently, I'm one of them.
  7. rsnapshot by Anonymous Coward · · Score: 1, Informative
  8. kdawson should have unscrabled this one by Anonymous Coward · · Score: 0

    I might be wrong but i think he is asking for a way to backup files to an ftp server storing them in an encrypted format. so although its on an ftp server and not really secure the files would have to be decrypted to be of much value.

  9. Rsyn might work? by php_krisp · · Score: 1

    If you're looking for a backup solution - using rsync might work for you? I think this can send files acros FTP. Also - it backs up incrementally - so you should file that your bandwidth isn't screwed in the process. As for being portable, it might take a bit of work, but we've got it running on a windows box through cygwin. http://en.wikipedia.org/wiki/Rsync

    1. Re:Rsyn might work? by php_krisp · · Score: 0, Troll

      Spelt Rsync wrong - what an idiot... (thought I might as well say it so that others didn't)

  10. Working On Something Similar by RAMMS+EIN · · Score: 3, Interesting

    I'm working on a backup solution that allows people to back up their data to a remote server securely and efficiently. For "efficiently", think rsync: only the differences are sent (and some information necessary to identify what the differences are). For "securely", think assymetric cryptography: your backup is stored in encrypted form, so that only someone who possesses your private key can use it.

    All this is currently in very early stages of design. I'd welcome any suggestions for protocols or software I could use. Currently, I am thinking to implement a transactional network block device protocol, and implement the backup protocol on top of that. I still need to decide on a programming language I can use for parts I need to write myself, too (something safe (no buffer overflows, please), yet with byte level access...and no Java or .NET, please).

    By the way, this is going to be a commercial product, but the code and the protocols will be open. I'll charge for the storage and bandwidth. :-D

    --
    Please correct me if I got my facts wrong.
    1. Re:Working On Something Similar by Anonymous Coward · · Score: 0

      Why not just extend rsync ?

      Will save you tons of programming and it has a large userbase (which means the regular-rsync userbase has tested the shit out of it for you already)

    2. Re:Working On Something Similar by davidkv · · Score: 2, Interesting

      Have you checked out rsyncrypto?

    3. Re:Working On Something Similar by RAMMS+EIN · · Score: 1

      No, but I will. It looks like it could be very useful to me. Thanks for the pointer!

      --
      Please correct me if I got my facts wrong.
    4. Re:Working On Something Similar by gsasha · · Score: 1

      Manent does it - I'm welcoming collaboration. Check it out at http://freshmeat.net/projects/manent. I'm not leaving my email here but you'll find it if you drill down to the project website.

    5. Re:Working On Something Similar by davidkv · · Score: 1

      There's also esync, but as far as I know (I emailed the guy a few years ago) he got swamped with other stuff and never got any further.

      There's quite a bit of theory on his pages though. Might be of interest.

    6. Re:Working On Something Similar by sumdumass · · Score: 2, Informative

      GPL3 might be why. He would have to open what he does on his servers to make it work with the GPLv3. That might not be an option for this type of webservice.

      If it was GPLv2, it might be a little better of an option except that Rsync wouldn't be able to do incremental backups unless it could decompress/decrypt all the files and then re-encrypt them without damage and when accessed. Storing information in a file index with mapping to the encrypted files would open the encryption to hacking and wouldn't be a good idea unless you could verify that something didn't change the stored file without updating it. So the server or host side has to be able to open the stored file, send something that says what we have already, then close it. And when your dealing with 100 changes in an employee handbook or something, that can start to take a lot of time and CPUs.

    7. Re:Working On Something Similar by sumdumass · · Score: 1

      Here is a suggestion, make sure something forces the user/admin on the client side to back up their encryption keys and settings to either something local or a combination of local and remote that isn't on the same computers being backed up. And make sure this is verified every so often by either requiring a "file" stored on the local backup to make the program work or simply make it refuse to work again without making another updated key and setting backup.

      Nothing pisses me off more then walking into a job doing a bare metal recovery and everyone has encrypted backups but all the keys are on the dead drive or the only copy of the now 7 year old install program is in the root of the same dead drive. Oh yea, we got 7 years of backups, here is the tapes, or we use this "off site" service and they are all useless until 2 weeks later when the $2500 in lab drive recovery is done. And no, I'm not affiliated with the recovery people at all.

      Oh well, I guess I shouldn't pick on the bosses rocket scientist nephew who has made so many full blown decisions based on half the information that it has stopped being funny long ago.

    8. Re:Working On Something Similar by Anonymous Coward · · Score: 0

      It's a good one

    9. Re:Working On Something Similar by Anonymous Coward · · Score: 1, Funny

      so by "working on" you mean in the same sense I'm "working on" time travel, even though i haven't decided if i'm going to follow D&D, White Wolf of MTG-style sorcery to do it..

      it will better than all the other travel solutions, even though in order to use it, you must travel in time (and the time you travel is equal to the amount of time spent casting the spell)

    10. Re:Working On Something Similar by Anonymous Coward · · Score: 0

      Oh, like Ashay Backup?

      http://www.ahsay.com/en/home/index.html

      I've been using it for years, it's platform independent and works very well. (Java).

    11. Re:Working On Something Similar by Eighty7 · · Score: 1

      For "securely", think assymetric cryptography

      Your ideas are intriguing to me and I wish to subscribe to your newsletter.

    12. Re:Working On Something Similar by Sun · · Score: 2, Informative

      I've looked at it a while back (I'm the one who wrote rsyncrypto). When compared with rsyncrypto, the main thing I didn't like (aside from the fact there appears to be no implementation... ) is the amount of state stored. Esync actually needs access to the old plain text file in order to work (or a substantially similar state). Rsyncrypto, on the other hand, needs just a few pieces of state per file, that once created never change. These include the symmetric session key and such stuff, and are about 68 bytes in length.

      I really don't remember the details any more, but I think that there were also performance implications to the above.

      If want, there is also a program called "murk" http://murk.sourceforge.net/, which implements the same principle as rsyncrypto. As far as I can tell, it is much less mature, and no longer maintained.

      Shachar

    13. Re:Working On Something Similar by Anonymous Coward · · Score: 0

      GPL3 might be why. He would have to open what he does on his servers to make it work with the GPLv3. That might not be an option for this type of webservice.

      Could you be more precise why do you think this is the case? Or did you confuse GPLv3 and AGPL?

    14. Re:Working On Something Similar by Bert64 · · Score: 2, Interesting

      Well, I use rsync over SSH (so the network traffic and authentication is encrypted)...
      You could potentially use an encrypted disk locally, and rsync the encrypted disk image over (it should still only xfer the changes), assuming you don't trust the target host.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    15. Re:Working On Something Similar by sumdumass · · Score: 1

      Or did you confuse GPLv3 and AGPL

      I'm probably confusing the two to the extent I made my comment. But it is my understanding that propagate is defined as (among other things) "making available to the public". Convey is defined as "any kind of propagation that enables other parties to make or receive copies."

      Now, that might not mean what I'm thinking it means and it is actually the AGPL that does it. But I remember the the specific intent to include those provisions into the GPLv3 which is probably why I was thinking that. Anyways, I don't like the GPLv3 and it would still be a no go for me.

    16. Re:Working On Something Similar by Anonymous Coward · · Score: 0

      Why wouldn't Rsync be able to do incremental backups? Encrypted files are just binary, and rsync doesn't care about the content of files. Unless you think someone is stupid enough to place all the unencrypted files within a single encrypted image, rsync will work fine. There is no need for rsync to know about unencrypted contents within files.

    17. Re:Working On Something Similar by Naito · · Score: 1

      You can use Unison over SSH, make the user's home directory encrypted using EncFS, and you'll have both secure transfer and secure storage. I've written a couple scripts that do something similar. Unison is nice because it works like rsync yet is more easily available for all platforms.

    18. Re:Working On Something Similar by mdmkolbe · · Score: 1

      As far as I can tell, "murk" will only produce a small patch if bytes *change* without inserting or deleting new bytes. Rsyncrypto is much smarter than Murk in this regard. With Murk, deleting (not changing) a single byte at the front causes the entire cipher text to change.

      (However, I believe murk and rsyncrypto share some fundamental insecurities (more than just diff-based attacks) so these statements are not an endorsement of either.)

    19. Re:Working On Something Similar by kriebz · · Score: 1

      Reading the summary and the first few response threads, my thinking turned to needing the remote service to work on the block level. Unfortunately, this doesn't work with the very primitive capabilities of FTP, so it's not going to work for the original poster. Looks like your idea doesn't mandate using an existing transport. He doesn't say how big his backups are or how often he wants to do this, but he wants individual file support.

      Looks like there are a few projects that are trying this, but none of them are both transparent and cross-platform. If it was me I'd use FUSE and start in Python and move to C++ if it seems necessary or prudent. I wanted to do something like this to share files securely among a group, verifying ownership, unlike say GNUnet, which guarantees you have no idea who owned the file. Even that seemed like too broad of a target.

    20. Re:Working On Something Similar by wolfdvh · · Score: 1
      All this is currently in very early stages of design.

      I'm glad you haven't invested a lot of time since as a commercial product it would need to compete with the likes of www.asigra.com

      The company has in the past been a provider for ISPs to rebrand it as their own but has recently started to get into the enterprise space.

    21. Re:Working On Something Similar by rdebath · · Score: 1

      After a quick look at it, your decision function worries me. You are placing information about the plaintext into the encrypted rsync stream. This info is only processed by a simple sum function before it is given to the untrusted server.

      My immediate feeling is that the decision function should be based on an ECB transform of the plaintext not the plaintext itself.

      But you should be aware that, even without the above problem, you are downgrading the security a little because this restarting of the CBC chain is almost the same as using ECB mode to start with. The 'almost' being that the block size is much larger than ECB mode so you will need a much larger image than the wikipedia one to show the non-randomness.

    22. Re:Working On Something Similar by Sun · · Score: 1

      After a quick look at it, your decision function worries me.

      I'm with you. I talked about it elsewhere, but this is, indeed, a not secure enough aggregate of the last few bytes of the file.

      There are several plans for fixing this, but the problem is that fixing this while still being able to generate a reset on a one byte boundary incurs a HUGE performance penalty. I'm still trying to figure out how to handle that one.

      the CBC chain is almost the same as using ECB mode to start with.

      See discussion elsewhere in this thread for why I think this is not a problem for real-life scenarios.

      Shachar

    23. Re:Working On Something Similar by Sun · · Score: 1

      A quick note.

      It is, in fact, not the decision function inside rsyncrypto that is the problem here. It is the one inside gzip that is really problematic.

      The decision function inside rsyncrypto is, indeed, a mere sum of a few byte of plain text, but it is compressed plain text, that has high entropy. The same decision function is being employed by gzip as well, however, and there it sums over actual plain text.

      Both decision function points can be inferred from the cipher text, by looking where the change begins (gzip decision function) and where it ends (rsyncrypto decision function).

      I should just point out that while I agree it is a problem, I am yet to think of an actual attack against this weakness. At the moment, although I am trying to figure out a solution, I am a bit of at a loss as to how severe to rate it. All that is leaked is the fact that the past 8192 bytes of plain text divide by 8192. I referred to it as "leaking 20 bits of aggregate for about every ~12KB (compressed) plain text".

      The problem with replacing the decision function with a cryptographic function is the cryptographic function block size. Take, for example, a XOR+AES encrypt of a block, asking that the result divide by 8192. Since you want byte alignment, and since each AES encryption block is 64 bit, you will need to keep 8 such blocks in memory, and update each in turn. Each update requires an AES operation (assuming you remembered the old AES encryption). This means that a single block, which today gets one AES operation, will now require 9. You have just made rsyncrypto 9 times slower.

      Is this an acceptable price to pay? Maybe it is. Without understanding how serious the current leak is, it's really hard to answer that one.

      We can improve this number by stating that we only detect changes of the delete/add kind if they change an even number of bytes, and reduce the slow down to 5 times. Again, is this a reasonable price to pay? I'm not sure.

      I hope this explains some of the dilemma.

      Shachar

    24. Re:Working On Something Similar by rdebath · · Score: 1

      reset on a one byte boundary

      oops, Eight encryptions of the same plaintext shifted by one with the same key would be worrying too. Even if there's direct no release of the ciphertexts.

      I suspect you're left with just whitening the plaintext with a minor substitution cipher (independent key) as that's the only thing that preserves the inter-character patterns that you need.

      Considering it's often suggested that the first few bytes of an encrypted stream should be completely random (and discarded on decryption) to hide similar files created with the same key, the idea of creating patterns in the encrypted data looks like a bad idea from the start. I suppose I'd be left with just sending deltas and resending the whole file when they get too big.

      I do see your dilemma; you both want to hide the data from the remote and have the remote tell you about tiny pieces of the plaintext of the encrypted blob. With a perfect encryption algorithm it would be impossible for the remote to even tell where in the blob any specific bits of the plaintext reside. With modern compression before the encryption you get very close to this.

      This is starting to sound like DRM, ie something that's impossible because Bob and Eve are the same person.

      Oh well, good luck.

    25. Re:Working On Something Similar by Sun · · Score: 1

      oops, Eight encryptions of the same plaintext shifted by one with the same key would be worrying too. Even if there's direct no release of the ciphertexts.

      That I don't see. Even if that were somehow true, don't forget that 7 of the 8 are discarded. As an attacker, you never get to see either them or their effect. The only thing you do know is that they did not trigger a change.

      I suspect you're left with just whitening the plaintext with a minor substitution cipher (independent key) as that's the only thing that preserves the inter-character patterns that you need.

      So far, I have failed to see the advantage of doing that. I did consider switching to a more random (but still not cryptographic) hash function (say - CRC). Another idea was to re-encrypt the buffer with OFB, change the ratio between the minimal buffer before trigger and the trigger average length, and other ideas.

      Considering it's often suggested that the first few bytes of an encrypted stream should be completely random (and discarded on decryption) to hide similar files created with the same key,

      As far as I know, it's often recommended to never encrypt with the same key twice :-)

      I do see your dilemma; you both want to hide the data from the remote and have the remote tell you about tiny pieces of the plaintext of the encrypted blob. With a perfect encryption algorithm it would be impossible for the remote to even tell where in the blob any specific bits of the plaintext reside. With modern compression before the encryption you get very close to this.

      At least we do that.

      This is starting to sound like DRM, ie something that's impossible because Bob and Eve are the same person.

      Well, I think that, unlike DRM, you can get close enough. Especially if the only alternative is not to encrypt at all.

      Rsyncrypto lives on a three points trade off triangle. We want to achieve great rsyncability with excellent security, requiring little CPU in order to encrypt.

      Standard AES with CBC has to trade off just two factors - security and CPU. We all realize that using a 512 bit key will give better security, but we are not interested in investing the CPU in doing that. Any solution that thinks of merely these two factors is uninteresting to me, because I don't have the hubris to think I can improve on the current industry standard.

      I do believe that rsyncrypto gives a reasonable trade off of all three. There is always room for improvement, but I think the current position is around the center of the triangle, which means a reasonable trade off between all three.

      Oh well, good luck.

      The best summary for this thread I could think of :-)

      Shachar

  11. Problematic by twatter · · Score: 1

    The cross-platform for starters. Maybe? I don't think there's such an application.

    Unison might fit the bill, but I'm not sure about the FTP part (it does work over ssh, I think).

    The thumb drive req might be another problem, because I was about to suggest writing a Python or Perl script to do this (relatively easy). Most Linux distros have Python and Perl, but OS X and Windows I think you'd have to pre-install them. And Perl doesn't ship with an FTP client lib, I don't think.

  12. Depends on OS by jessedorland · · Score: 0, Troll

    If a user is transfering the files over Windows XP then he better start worrying about security holes of an OS long before FTP issue.

    --
    Even veals have more autonomy!
  13. TrueCrypt by kcbanner · · Score: 4, Informative

    See http://www.truecrypt.org/ for cross platform encryption...you can throw your files in there.

    --
    Obligatory blog plug: http://www.caseybanner.ca/
    1. Re:TrueCrypt by hmckee · · Score: 1

      I use TrueCrypt on my portable hard drive and tried using it for this application. The problem was that TrueCrypt couldn't create a file system on an FTP server.

      I've been using TrueCrypt to encrypt individual files before sending them to the FTP server. I'll have to give it a look again since my version might be a little out of date.

    2. Re:TrueCrypt by kcbanner · · Score: 1

      If you don't mind the bandwidth use can't you just sync up your TrueCrypt encrypted file?

      --
      Obligatory blog plug: http://www.caseybanner.ca/
    3. Re:TrueCrypt by Anonymous Coward · · Score: 0

      How did this get +5 Informative?

      I *love* Truecrypt as much as anyone, it's fantastic at what it does, and it does a lot and solves a lot of problems.

      But it doesn't solve the problem at hand: How do you mount a Truecrypt volume over FTP? Or if you mean to mount it locally and transfer it back and forth over FTP, you're missing the incremental syncing part of the problem.

      Read question. Understand problem. Suggest solution that satisfies problem. Don't just throw out the name of your favorite software as a knee-jerk answer.

    4. Re:TrueCrypt by Anonymous Coward · · Score: 0

      Are you a robot linking to TrueCrypt each time the word "encrypt" shows up in an askslashdot?

    5. Re:TrueCrypt by mxs · · Score: 1

      ... And does not even address just a single one of the poster's questions or requirements. It seems you have a hammer, and everything must be a nail. How you got +5 Informative on that ... Crikey !

    6. Re:TrueCrypt by kcbanner · · Score: 1

      I provided information which some people seemed to think was usefull. I addressed the cross-platform part of his question.

      Your post, on the other hand, doesn't seem to serve any purpose.

      --
      Obligatory blog plug: http://www.caseybanner.ca/
    7. Re:TrueCrypt by kcbanner · · Score: 1

      Oh, well on linux just use fuse to mount the ftp volume. Not sure if you can do something similar on windows, mount an ftp site as a "network drive" maybe with some third party software.

      Sorry if my answer offended you.

      --
      Obligatory blog plug: http://www.caseybanner.ca/
    8. Re:TrueCrypt by capn0jack · · Score: 1

      Right, then I was thinking that you can use some block-level replication tool (rsync?) to replicate the whole encrypted volume. How much data are we talking about here? Thanks, Chaz

    9. Re:TrueCrypt by Anonymous Coward · · Score: 0

      [Same AC again here.]

      I wasn't offended, just irritated. But this new reply from you is genuinely informative and useful, so thanks.

  14. Does it have be to ftp? by pananza · · Score: 2, Informative

    I use Amazons S3 service and a great multi-platform UI called JungleDisk. S3 costs a little bit, but you get security (encryption), backup, reliability for a cheap price. Check out: http://www.amazon.com/s3 and http://www.jungledisk.com/

    1. Re:Does it have be to ftp? by mbaciarello · · Score: 1

      I second the recommendation.

      Backups are differential on a block level (blocks are a few MB, if I'm not mistaken). File identities and extended attributes are preserved. Upload resume and "on the fly" (i.e., without re-uploading) encryption key changes are supported for a premium (JD Plus service).

      I'm not sure how secure the web access interface is, but I think you can disable it.

    2. Re:Does it have be to ftp? by hmckee · · Score: 1

      I was using Amazon S3 before realizing I was paying double when I had a spare 20 gigabytes on my FTP/HTTP hosting service. I could pay an extra $10 a month to get SFTP/SSH service but I guess I'm being cheap.

      I'm also not storing anything so important that I need a technically superior solution.

    3. Re:Does it have be to ftp? by perlchild · · Score: 1

      I'm also not storing anything so important that I need a technically superior solution.

      And yet you're asking slashdot? *sarcasm*Are you sure you shouldn't be on the fortune500 forums? */sarcasm*

      I doubt(and the rest of the thread proves it, I think), that we'd debate much of anything but
      1) technically superior solutions
      2) pet solutions we happen to like, no matter if they're good or not

    4. Re:Does it have be to ftp? by jalefkowit · · Score: 1

      I was using Amazon S3 before realizing I was paying double when I had a spare 20 gigabytes on my FTP/HTTP hosting service. I could pay an extra $10 a month to get SFTP/SSH service but I guess I'm being cheap.

      You may find that using your Web hosting service as a file storage solution will backfire on you.

      I use Dreamhost for my personal Web hosting. It's cheap, reasonably reliable (one major outage in the five years I've been with them, but then Rackspace has had a major outage too in that time too), and comes with a metric ton of disk capacity.

      BUT... Dreamhost (like most commodity hosting providers) assumes that 99% of their customers will never actually use all that capacity. That assumption held true until last year, when they noticed more and more of their customers using all their previously unused disk capacity for stuff like automated backups of their home PC. Which, it turns out, they explicitly ban in their terms of service, which state that your Dreamhost disk space is for web hosting only.

      So customers started getting emails telling them that they had three options: erase all those backup files, close their account, or start paying Dreamhost $.20/GB/month for non-Web file storage. That's a nickel more per GB/month than S3.

      I don't bring this up to knock Dreamhost; from their perspective this kind of use of their service is really abuse, since they sell it as Web hosting storage space, not generic online disk space, and most hosting providers would probably just kick you off altogether rather than futz with setting up a for-pay storage option. I bring it up to encourage you to just use S3, since Amazon has already solved all the problems you're spending time solving, and the cost savings would be negligible and could even lead to you getting kicked off your Web host altogether (there's no guarantee that your host will offer you a "non-Web storage" option like DH does). All of which is more hassle than I would recommend undergoing to save a couple of bucks a month.

    5. Re:Does it have be to ftp? by hmckee · · Score: 1

      I wish I could mod this one up. I'll have to double check my terms of service on this one. The amount of files I'm storing is so small compared to what I'm actually hosting on the web site that I don't think it will make a difference, but it's still valuable info. Thank you.

    6. Re:Does it have be to ftp? by hmckee · · Score: 1

      I checked the terms and you are correct. At least I can put my photos on the web site and it won't technically count as a backup because I'm serving them up to friends and family.

      As to the encrypted data, I'll probably have to go back to using Amazon S3 and JungleDisk. This time I'll make sure that I'm not accidentally saving 10GB of photos. :)

    7. Re:Does it have be to ftp? by Legion_SB · · Score: 1

      It should be pointed out that, while S3 encrypts the transmission, the file are not encrypted on S3's servers.

      That's the REAL value of JungleDisk, which offers the feature of 256-bit AES file encryption, encrypting each file before it goes out over the Internet to S3's servers.

      That's what earned JungleDisk my $20. My data's easy for me to get to, yet encrypted at all times until my private key decrypts the data on my local machine.

      --
      'a';DROP TABLE users; SELECT * FROM DATA WHERE name LIKE '%'... if you're reading this, it didn't work.
  15. hmm by Anonymous Coward · · Score: 0

    i thought filezilla supported sftp out of the box. at least i've been able to use it so. forportable cross platform, u might want to put linux/windows static binaries on your pen-drive.

    1. Re:hmm by Arimus · · Score: 1

      It does.

      The author though doesn't just want to encrypt the file in transit he wants to encrypt & digitally sign the file when it is stored on the ftp server.

      --
      --- Users are like bacteria -> Each one causing a thousand tiny crises until the host finally gives up and dies.
  16. Re:A slight oxymoron here. by Anonymous Coward · · Score: 4, Insightful

    "secure" and "untrusted" don't go hand in hand. If you want security, don't put things in untrusted spaces. Period.

    I disagree. Everywhere you can store your files should be considered "untrusted". And "securing" the files is what we do to mitigate that reality.

  17. duplicity + ftplicity by Horus107 · · Score: 5, Interesting

    duplicity combined with ftplicity:

    "Anyone storing data on an unfamiliar FTP server needs to encrypt and sign it to ensure reliable protection against prying eyes and external manipulation. duplicity is just the tool for this, and the ftplicity script from c't magazine makes working with it child's play."

    http://www.heise-online.co.uk/security/Backups-on-non-trusted-FTP-servers--/features/79882
    http://duplicity.nongnu.org/

    1. Re:duplicity + ftplicity by hmckee · · Score: 1

      Yes, I've looked at this, but I'm already using a Python script to do most of that. I was hoping to find something with a GUI and that was easier to put on a portable hard drive than Python.

    2. Re:duplicity + ftplicity by sumdumass · · Score: 1

      Anyone storing data on an unfamiliar FTP server better make sure that is isn't important or private. FTP doesn't encrypt anything, including the user name and password. Simply sniffing either end of the connetion could allow anyone to delete the files, down load them to be cracked on a 2 million node bot net contributing cycles, or even infect the files with something that would notify me when you access them and either send your keys to me or give me access to your system.

      And I said me not because I would or even could do something like that, but because it fit better then them or whoever. I am not in anyways capable of writing a virus outside of a hillbilly virus. You know, the sig lines that says forward this email to 20 people then type "format c:" in the run box and you will see a famous star naked with smiley faces resembling your children on your screen.

    3. Re:duplicity + ftplicity by Jackmn · · Score: 1

      down load them to be cracked on a 2 million node bot net contributing cycles

      If he is using a half-decent algorithm and a reasonably long key, then there isn't nearly enough computing power available on Earth to crack his data through brute force.

    4. Re:duplicity + ftplicity by sumdumass · · Score: 1

      That's probable true assuming that there isn't some crack or flaw or new process discovered between now and then that doesn't make what you say an urban legend. If your willing to risk that and something does happen or the random luck of the draw makes the key used that second one guessed during the brute force attack, you pretty much lose all ability to cry fowl. It is sort of like parking a car with a box labeled "caution, worth 1 million dollars, don't let out of site" on the front seat in the middle of the worst part of town and then going back to the rich side for dinner the thinking the car will be OK because the convertible has locks and an audible alarm system. Some things you just don't do.

    5. Re:duplicity + ftplicity by Jackmn · · Score: 1

      or the random luck of the draw makes the key used that second one guessed during the brute force attack

      The odds of that occurring are on the order of winning the 64/9 jackpot eleven times in a row. The odds are so astronomically unlikely that they aren't worth considering.

      Billions upon billions of dollars change hand every day, protected by the same encryption freely available to individuals. AES256 is certified by the US government for top secret information, and there are free implementations available (although if your data is really important then you will want to use a certified implementation).

  18. Re:A slight oxymoron here. by Sparohok · · Score: 5, Insightful

    If you want security, don't put things in untrusted spaces. Period.

    Completely, utterly incorrect. It's a sad comment on the ambient understanding of data security that this got modded insightful.

    Trust is seldom a good approach to security. Good security is when you can trust nobody and still sleep at night. That means strong encryption. That is exactly the approach implied by the article and it is exactly the right thing to do.

    I think it is very unwise to ever assume any level of trust in the storage of backups, certainly offsite backups. The whole idea of backups is that you keep them around for a long time, in several copies and several locations. The more valuable your data, paradoxically, the more copies you need and the more widely dispersed they should be. This is antithetical to maintaining trust. The right way, indeed the only way out of this paradox is strong encryption.

  19. How do I hammer a nail into a wall? by Plantain · · Score: 0

    When hammering a nail into a wall, should I use a shoe, or a glass bottle?

    Don't use FTP. Use something secure.

    --
    No, but I did throw granola at a deaf person once
  20. Wear a mask by ILongForDarkness · · Score: 1

    some people prefer there nudity that way.

  21. Re:A slight oxymoron here. by hmckee · · Score: 1

    Areca might work, I'll have to give it a spin. Thanks.

  22. The problem with FTP by RenHoek · · Score: 1

    Ok ftp supports reading chunks of data from files, i.e. byte range n-m.

    However it doesn't support (I strongly suspect) _writing_ chunks. Sure you can say, 'REST n' and start writing but I think the file would be truncated.

    This means, encrypted images like Truecrypt containers are out,s ince you'd be writing the entire file over and over again.

    So you'll have to stay with single files.

  23. Re:A slight oxymoron here. by Anonymous Coward · · Score: 0

    Mod up. Its one of those issues that people who don't think very hard about a problem before making a judgment will get wrong 90% of the time. These are not the type of people to take security advice from. Listen to the parent, his wisdom shines through.

  24. Re:A slight oxymoron here. by Whiney+Mac+Fanboy · · Score: 1

    Areca might work, I'll have to give it a spin. Thanks.

    No problem. Note that my post is not an endorsement of Areca, I just searched freshmeat for ftp encryption and perused a few of the matches. Have a read through the other results, you might find something else worth looking at.

    Not sure what sort of budget/skillset you're working with, but it'd also be pretty trivial to script up a solution that does what you're after too.

    --
    There are shills on slashdot. Apparently, I'm one of them.
  25. We should make this product by Anonymous Coward · · Score: 0

    https://launchpad.net/ensure

  26. Reverse encfs by wardle · · Score: 1

    Try the FUSE filesystem, encfs

    Use in in reverse, provides an encrypted view of your data.

    Then send that data anywhere you like.

    1. Re:Reverse encfs by Zygfryd · · Score: 1

      More importantly, you can just mount encfs over curlftpfs and have a 100% transparent solution. The downside is portability.

  27. Doesn't sound like it will work by Chuck+Chunder · · Score: 1

    If the backup is going to be stored in encrypted form then how is efficient "rsync-like" difference identification going to be possible?

    A small change in a source file will likely change everything following it in the encrypted version.

    --
    Boffoonery - downloadable Comedy Benefit for Bletchley Park
    1. Re:Doesn't sound like it will work by RAMMS+EIN · · Score: 1

      ``A small change in a source file will likely change everything following it in the encrypted version.''

      Yes, of course. This is one of the main challenges. :-D

      --
      Please correct me if I got my facts wrong.
    2. Re:Doesn't sound like it will work by Anonymous Coward · · Score: 0

      ``A small change in a source file will likely change everything following it in the encrypted version.''

      Yes, of course. This is one of the main challenges. :-D

      idiot

    3. Re:Doesn't sound like it will work by Anonymous Coward · · Score: 0

      Depends how you use your encryption. Encrypted file systems encrypt each block separately to get around this very problem. Your choice of block size is a tradeoff between security (large blocks) and efficiency (small blocks).

      Best of luck with your planned online service, be sure to make it impossible for you to recover the keys so your customer's data is secure even when the NSA turn up.

    4. Re:Doesn't sound like it will work by fastest+fascist · · Score: 1

      Chopping the file into segments and encrypting the pieces separately? If you're sending files where only a clearly defineable portion is likely to be changed, this might work.

    5. Re:Doesn't sound like it will work by sirambrose · · Score: 1

      Block encryption doesn't help if data is inserted instead of overwritten in the middle of the file.

    6. Re:Doesn't sound like it will work by Arterion · · Score: 1

      You could use something like FAT, where you have clusters. Say, break a file into 4 KiB blocks. You could replace a current block, but if you inserted more than 4 KiB of data, you'd have to add it to the end of the file. Of course, then fragmentation would be an issue. But I guess it would work.

      When you "decrypted" the file, it would assemble all the unencrypted blocks in the correct sequence, much like FAT does.

      --
      "That which does not kill us makes us stranger." -Trevor Goodchild
  28. Re:A slight oxymoron here. by xalorous · · Score: 1

    Untrusted storage site means others can access the files.

    Access means they can decrypt them. Given enough cycles, encryption can be broken.

    If you want your encrypted files to be secure, keep your keys protected and do not allow access to the files.

    IMO, preventing access to the files is priority, encryption is only there in case preventing access fails.

    It boils down to acceptable risk.

    --
    TANSTAAFL GIGO Acronyms to live by!
  29. Being written by DeBaas · · Score: 1

    At the moment I'm having an intern write such a program in Bash as a proof of concept. We use GnuPG to encrypt.

    How it works is:
    - create a hash of each file in the dir to backup
    - the hash is placed in a 'map file' with the original name and path
    - if on the server side no file with that hash as a filename exists, the script encrypts the file, uses the hash as a filename en ftps the file to the remote server.
    - the map file is encrypted as well and gets the date as a filename and is send to the remote server as well.

    Pretty simple. The clue is that you have to trust the remote site only to provide the service. You do not have to trust them not read your files. As a hoster you can safely say that you really cannot read their files as the encryption is done by the client.
    By using the hash check, we make sure only changed files are sent. This method also gives us history. You can simply use the map file of a certain date to revert to a version of the file at that date.

    It works, but is absolutely not ready to be released.

    --
    ---
    1. Re:Being written by hmckee · · Score: 1

      That's cool. This is the information I was hoping to get out of this question. I've also read some posts with some really helpful info on obstacles that would need to be overcome to use this application on other computers.

    2. Re:Being written by xaosflux · · Score: 1

      GPG is great. What this 'ask slashdot' is missing is more information: What are you really trying to do with your data? If this is just for backup then just tgz (or whatever your fs uses) your files; gpg them and ftp them off. While your offsite data provider doesn't provide for sftp, the data is already encrypted so just your ftp creds get sent in the clear. To reduce brute force attempts to steal your encrypted files, see if your provider can put a simple ip filter on the ftp server, only allowing access from your preapproved addresses.

  30. Super Flexible File Synchronizer by wolssiloa · · Score: 1

    Try Super Flexible File Synchronizer http://www.superflexible.com/ I've been using it to backup and sync my files over SFTP and FTP to two different FTP sites. It can use zip file encryption on each individual file, and uses file name mangling to retain the date information in the file. All this is transparent to the user. It can run portably if you use Universal Extractor (a portable app) to extract the contents of the setup file, then after first run, in the Options, tell the program to use a single .ini file. This one tool does all that you need.

  31. FTP? Forget it by Anonymous Coward · · Score: 0

    FTP has no chance of being secured. It's also painful to support in firewall terms. If you need secure file management and your ISP provides only FTP, you need a new ISP.

    WebDAV over HTTPS, however, is built right into Windows' "Network Neighborhood", Konqueror, lftp, and lots of multi-platform Java Apps. It's a core component of Subversion over HTTP or HTTPS, and most web servers support it quite easily. It's also often easier to get running than SSH with chroot cages or SFTP.

  32. Untrusted by Anonymous Coward · · Score: 0

    If you want untrusted, email me and you can FTP your files to my site.

  33. Re:A slight oxymoron here. by sumdumass · · Score: 1

    I'm not sure if SSH or HTTPS is a proper connection comparison. SSH attempts to secure the untrusted lines or roads the information is taking when the two endpoint are secure. It doesn't secure the endpoint. Same with HTTPS. From what I gather from the question asked, it seems like he wants to use HTTPS to access a regular HTTP site for some reason.

    I'm not really sure why someone would be concerned about securing a link between two point when I can defeat that security at least as one of the end point. It would be an illusion to think you would be using any security at that point unless you want to avoid someone sniffing your connection to find what your sending. But the problem with that is that they will still know where your going and they can simply view it once you put it there. If they are quick enough, they can see what was there and what is there after your transfer an figure out what your sent. Password protection on the FTP site isn't enough to stop someone from viewing it. All they have to do is compromise a user with higher access levels which could see all your directories and with regular FTP, your user name and password isn't encrypted. You would need at least SFTP or some HTTPS equivalent at least on the server side. Of course encrypting the file before hand is an option but then you lose the ability to browse the files without a special viewer that can read the encrypted files or decrypting them first. Something like SFTP or STUNNEL or even SCP might work well with a script or even a program that can use it but I guess there are some server side requirements that might not be able to be addressed.

  34. What's it worth? by Colin+Smith · · Score: 1

    I'd translate "wasn't possible" to "couldn't be bothered".

    I'd translate it as uneconomic.

     

    --
    Deleted
    1. Re:What's it worth? by Bert64 · · Score: 1

      Assuming they already run an FTP server, enabling it for FTPS should be pretty simple...

      If they run unix they already have SSH, setting user's shells to scponly is pretty trivial (they must already set their shells to something like /bin/false or ftponly).

      For a minimal level of work they can advertise that they're more secure than other providers by virtue of allowing secure upload/authentication.

      Personally i would NEVER host a website using a provider that only allows insecure FTP, the risk of being sniffed and having my site defaced and files deleted is unacceptable, so their idea of being "economic" has reduced their potential customer base by at least 1 and probably a lot more.
      I tell the same thing to anyone who asks me for hosting recommendations.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    2. Re:What's it worth? by cryptodan · · Score: 0

      If they are sniffing your activity then maybe you should think about the security of your own internet browsing, and take into consideration that your computer is compromised with key logging Trojans that send information to an attacker that can easily log into your account and deface your website. Just thought I would point that out. It is probably a lot more difficult to hack a server implant a sniffer and by pass that hosting providers IPS/IDS Devices then to have you go to a malicious site and automatically install a key logger.

    3. Re:What's it worth? by TerranFury · · Score: 1

      If they run unix they already have SSH, setting user's shells to scponly is pretty trivial (they must already set their shells to something like /bin/false or ftponly).

      Is it just me, or is this a dirty hack? This is not a criticism of your suggestion -- currently that's simply how it's done -- but why on earth do we, for transferring files, use a program that provides shell access, and then try to "break" that program enough with a weird configuration that certain features don't work? Why are file transfer and shell access tied together at all?

      This approach is not even reliable! If you're trying to restrict people to a certain directory, you either need chroot -- which the user can probably break out of if he's really determined -- or, you need to have very, very carefully set all of your file permissions everywhere -- and this seems to be bad engineering practice to me, as it requires a correct "global" configuration (correct permissions everywhere) to achieve a "local" result (restriction to a certain directory).

      There are other doors that probably get left open as well when you do it this way. You meant to give the user the ability to manipulate files, but you've probably also inadvertently given him the ability to port forward (you don't need a shell for this). Did you really mean to give all of your users SOCKS proxies that they could do whatever they wanted with? What if they use them to download copyrighted MP3s and get busted by the RIAA, or child pornography and get busted by the FBI? Sure, you probably won't be liable in the end, but do you really want to be in that legal mess at all?

      (Luckily, newer versions of SSHd are starting to provide some more per-user config options which solve some of these problems. But it still seems to me that this is risky territory to enter just to to provide the ability to transfer files.)

  35. vanilla ftp: your password will be in the clear. by zonky · · Score: 3, Insightful

    This may well mean that despite whatever you do, encypt etc, someone can sniff the password and then simply come in and delete all your files. i.e, whatever other steps you take, this is inherently worthless.

  36. Do they have SSH? by Jane+Q.+Public · · Score: 1

    If you can ssh to the site, you should be able to do sftp, which is basically ftp over ssh. That is about as secure as it gets without personalized encryption keys.

    If you cannot ssh to the site, then you should find another host.

  37. Code it. by EddyPearson · · Score: 1

    This is why they designed programming languages.

    Grab Python, it's going to cost ~60 lines.

    --
    You feel sleepy. Close your eyes. The opinions stated above are yours. You cannot imagine why you ever felt otherwise.
    1. Re:Code it. by cerberusss · · Score: 1

      Grab Python, it's going to cost ~60 lines.

      And two days of debugging.

      --
      8 of 13 people found this answer helpful. Did you?
  38. Manent fits the bill perfectly. by gsasha · · Score: 5, Informative

    Well, it's feature list is exactly what you want and some more :). Here's the project description:
    Manent is an algorithmically strong backup and archival program. It features efficient backup to anything that looks like storage. Currently it supports plain filesystems ("directories"), FTP, and SFTP. Planned are Amazon S3, optical disks, and email (SMTP and IMAP). It can work (making progress towards finishing a backup) over a slow and unreliable network. It can offer online access to the contents of the backup. Backed up storage is completely encrypted. Backup is incremental, including changed parts of large files. Moved, renamed, and duplicate files will not require additional storage. Several computers can use the same storage for backup, automatically sharing data. Both very large and very small files are supported efficiently. Manent does not rely on timestamps of the remote system to detect changes.
    Check it out: http://freshmeat.net/projects/manent. It's under active development (the UI and the setup are currently in fetal stage) but the basic functionality is there and is well tested.
    Disclaimer: I am the author.

    1. Re:Manent fits the bill perfectly. by Anonymous Coward · · Score: 0

      You sir, are brilliant. This is exactly what I've been looking for for some years now.

      Just a question, I don't seem to be able to find the license. What license is it under?

    2. Re:Manent fits the bill perfectly. by gsasha · · Score: 2, Informative

      I'm aware of the issue. I plan to release it under dual GPL/something else license very soon.

    3. Re:Manent fits the bill perfectly. by hmckee · · Score: 1

      This is great. I might even sign up to help you out, if you need it.

    4. Re:Manent fits the bill perfectly. by gsasha · · Score: 1

      Feel free to contact me. You can find my address on the freshmeat page or on the project's trac website: http://trac.manent-backup.com./

    5. Re:Manent fits the bill perfectly. by Anonymous Coward · · Score: 0

      Currently it supports plain filesystems ("directories"), FTP, and SFTP. Planned are Amazon S3, optical disks, and email (SMTP and IMAP).

      Are you planning FTPS support? It's faster than SFTP (which isn't related to FTP).

      Secure IMAP?

      I like choices other than SFTP.

    6. Re:Manent fits the bill perfectly. by gsasha · · Score: 1

      Update: trac.manent-backup.com is currently down. We're working on a solution.

    7. Re:Manent fits the bill perfectly. by gsasha · · Score: 1

      Update: we're back online.

    8. Re:Manent fits the bill perfectly. by Anonymous Coward · · Score: 0

      Disclaimer: I am the author.

      Your project files are missing a license. :-(

    9. Re:Manent fits the bill perfectly. by Anonymous Coward · · Score: 0

      How are you handling the S3 patents? Has Amazon said it won't enforce them against clients, only servers?

    10. Re:Manent fits the bill perfectly. by gsasha · · Score: 1

      What is the problem with S3 patents? I wasn't aware of that.

    11. Re:Manent fits the bill perfectly. by gsasha · · Score: 1

      I've opened a ticket. Don't know yet if there are good python libraries for it.

  39. Ftplicity is what u look 4 by Anonymous Coward · · Score: 0

    get duplicity
    funny nobody mentioned it yet...
    t

    http://duplicity.nongnu.org/

  40. Look, I'm not so sure about security but by axlr8or · · Score: 0

    Unless your planning on accessing your data from one location only, I'd suggest you forget it. I've been to different locations around the country and found that some bigger hotel chains as well as some so called 'hot spots' will actually firewall FTP. It's not unreasonable to believe ISP's are doing the same thing. I cannot access my ftp services from where I work. So, I'd be thinking of some other setup.

    1. Re:Look, I'm not so sure about security but by hmckee · · Score: 1

      Another interesting road block I hadn't considered. I guess if I really needed the data from a remote location, I'd have to provide access to the data via HTTP. No write access though unless I added some kind downloader.

  41. The wonders of pipelines by jandersen · · Score: 1

    If possible, keep it simple. This is what I do - it is from UNIX, I don't know if Windows can handle it, but probably through a proper UNIX subsystem:

    (cd /source/directory;tar cf - *)|ssh user@target '(cd /target/directory;tar xvf -)'

    The left side will copy the whole directory tree under /source/directory and put it out on stdout in tar format; the right side will route the stdout to the target machine, where it will be unpacked under the target directory. If you don't want to copy everything, there are ways of handling that too - read the man pages of tar and find.

  42. Give up by FooBarWidget · · Score: 1

    I've looked into this in the past. There is nothing better than Duplicity.

    I eventually gave up and started backing up my data to servers that I do trust. You should too. You can rent a VPS for only $20 per month. It's just easier and *know* that you're the only one who has root access (assuming that you keep updating your system, of course).

    1. Re:Give up by GNU(slash)Nickname · · Score: 1

      You can rent a VPS for only $20 per month. It's just easier and *know* that you're the only one who has root access (assuming that you keep updating your system, of course).

      You don't *know* any such thing.

      It sounded to me like the OP was concerned about protecting his data from the hosting provider. Trolling through the guest filesystem is a trivial exercise if you already have root on the VPS host.

    2. Re:Give up by garutnivore · · Score: 1

      I've looked into this in the past. There is nothing better than Duplicity.

      I eventually gave up and started backing up my data to servers that I do trust.

      I came to the same conclusion. All the solutions out there required me to compromise on things I did not want to compromise on.

      You should too. You can rent a VPS for only $20 per month. It's just easier and *know* that you're the only one who has root access (assuming that you keep updating your system, of course).

      Hmm... on a VPS you are not the only one with root access. Those who provide you the VPS can do anything to it. So I do not consider this to be "trusted" by any stretch of the imagination. I solved my problem by building myself a NAS. Contrarily to the usual suggestion of reusing an old computer, I bought new, power-efficient hardware to keep the electricity consumption down. It sits in my house. I'm the only one with root access.

    3. Re:Give up by FooBarWidget · · Score: 1

      Of course I wouldn't trust it for government secrets. But if you don't trust the VPS seller, then how can you trust that BIOS/CPU/RAM/network card manufacturer didn't insert malware into the hardware? At some point you have to trust *something*.

    4. Re:Give up by mudshark · · Score: 1

      And if your house burns down?

      --
      In other news, astrophysicists have announced that they now know what all that dark matter is: it's stupidity.
    5. Re:Give up by garutnivore · · Score: 1

      What if the VPS provider burns down or suffers any other serious hardware failure which results in data loss? Actually, hardware failures are more likely than buildings burning down. I've never been in a house fire but I've had quite a few HDs fail on me.

      Given that affordable VPS providers do not make guarantees about preserving the data stored on a VPS, I don't think having the data on a VPS is safer. I actually do have a VPS for my web site and back up elsewhere the data stored in my VPS because if a catastrophe were to strike my VPS provider, there is no guarantee as to my data.

      And before you start pointing out other possible "issues", rest assured that I've considered everything and I know where I traded off. Data storage is not a matter of absolutes but a balancing act between convenience, security and price. At the end of the day, the fact remains that I do not trust the people who run VPSes with my data. No amount of argument is going to convince me that they are trustworthy.

  43. Multi platform might be the problem by houghi · · Score: 1

    I can see a relative easy solution for Linux and that is just scripting the whole thing. Almost any backup script should be able to do what you want and can get the files from Windows machines as well. That will be in CLI, which should not be an issue as backups should not run in GUI anyway, but automagicaly with cron.

    It becomes different if you also want the restore to be in the same tool.

    --
    Don't fight for your country, if your country does not fight for you.
  44. Vote with your feet: Get a new host by Anonymous Coward · · Score: 0

    This seems untrue to me

    It is untrue. But just because something is possible technically doesn't mean that every host will do it. If secure file transfers are important to you, find a new host.

  45. Re:duplicity + ftplicity + Portable python by Noksagt · · Score: 2, Insightful

    I was hoping to find something with a GUI

    Then you should have put this as a requirement in your query. But I would ask WHY you want a gui? Backups should be set-and-forget! My USB sticks have multi-platform autorun scripts to execute my backup. I only need an interface if I choose to expand or shrink the backup set--I can edit a text file that has the list of what to exclude.

    and that was easier to put on a portable hard drive than Python.

    Python is pretty easy to put on a portable hard drive and there are multiple portable versions.

  46. Re:duplicity + ftplicity + Portable python by hmckee · · Score: 1

    Blame this on my not writing up a really thorough spec for the small summary. You can see some of my other posts for more info, but this was sort of a query to see if anyone had done something similar because it seems like a simple project that might be useful.

    As to the GUI, I was thinking it would be nice if it could double as a backup tool and a remote file system tool, ie access the files from another computer.

  47. DoubleTake? Dropbox? by stereoroid · · Score: 1

    There is already at least one commercial product for live sync between machines: DoubleTake. It's not designed for public use over the Internet, though, more for replication between data centers. I'm currently taking part in the Dropbox beta test, and this looks like it's designed for normal users. It basically does what you describe - sends only the changed parts of files, replicates them between multiple machines, and keeps multiple file versions on their servers (so you can revert to an older version of a file). Have a look at the video on the website - describes it better than words. Files and transfers are encrypted, though they don't seem to do anything fancy with public key encryption.

    --
    (this is not a .sig)
  48. retain the date information by iminplaya · · Score: 1

    This is my biggest problem with ftp. Is there any way to transfer files without mangling the date info and without having to wrap them in some kind of archive?? Is there a logical reason that to this day that ftp cannot keep it intact? Is there a reason that the date stamp is not contained in the file itself, as opposed to being "metadata"? What is the problem here? File management seems to be as primitive as it has been been since the 70s.

    --
    What?
    1. Re:retain the date information by Anonymous Coward · · Score: 0

      Proper ftp servers support extended commands which are the equivalent of chmod, touch, etc. for modifying the metadata of remote files. The main performance problem is the lack of pipelining in the control channel, so the transaction rate is very sensitive to round-trip network latency. (The same problem that exists with large sets of small-file transfers.)

  49. Try amanda disk back-end + Openssl encrypt by Anonymous Coward · · Score: 0

    I used a modified an amanda modified disk-backend with encrypt on the fly to store my amanda chunk on
    SRB (an ftp like system). I you are familiar with amanda, look at amanda/chg-disk shell script, add some ftp command line in place of file commands and you will get a solution.

  50. nice, guys, very nice by Anonymous Coward · · Score: 0

    seems like /. is full of sysadmins who wouldn't think twice about reallocating some of their employers ample hardware to do secure backup, particularly of their divx and mp3 collections. their (hinted at) responses: stop trying to solve the problem and configure your own secure backup space on dedicated secondary hardware.

    the rest of the world has to work inside of artificial constraints driven by cost, time and hassle factor e.g. they have only a single box and their hoster will give them ftp backup space cheaply but you don't want to take the files off of your own box unencrypted.

    when i ran into this problem i used the lftp backup receipt outlined on the rimuhosting.com website to mirror a folder. then the trick is to only mirror a folder containing encrypted versions of your sensitive files. for that you would have to write your own script that scans your unencrypted folder structure and gpgs a copy into the mirrored folder. that is a none trivial script with checking and setting of timestamps. personally i didnt do that but had a cron job that tarred and gpged my database backups on a nightly basis.

    surely it is fair to ask 'has someone not already solved this problem succinctly'? for example if lftp had an encryption option then a single tool would provide a zero hassle solution.

    1. Re:nice, guys, very nice by Anonymous Coward · · Score: 0

      duplicity http://duplicity.nongnu.org/index.html seems to have the correct capability as it supports ftp http://duplicity.nongnu.org/docs.html and uses the well rsync library and GnuPG encryption.

  51. Well, I've also looked into it and found nothing by gsasha · · Score: 4, Informative

    So I wrote it myself. http://freshmeat.net/projects/manent

  52. Re:A slight oxymoron here. by dolmen.fr · · Score: 2, Interesting

    It depends on what you put behind the word "security".
    "Backup" is also "security". And a cheap of-site backup is better than no off-site backup at all.

    I have the same need as the submiter as my ISP provides 10 GiB of public web space available only through FTP (r/w), HTTP (r) or HTTP+PHP (r/w). I have the storage, I need the software to use it while hiding backup content from my ISP and from other web eyes.

  53. Re:A slight oxymoron here. by hmckee · · Score: 2, Informative

    After thinking about this, I realize that I never should have written "non-trusted" in the description. I was thinking about FTP in the sense that it's inherently non-secure, which would make "non-trusted" redundant. I actually trust the FTP server as much one can be trusted.

    This made me think about side question to which others in this thread have alluded: When is FTP as secure as SFTP? When you're on a non-trusted computer. It's a minor issue, but if you're trying to access an encrypted file from a non-trusted computer, a compromised SFTP client will do you no good if you use the same password on the SFTP server and your encrypted data.

    It's been educational reading all these posts and thinking about various security issues with any of the solutions. I'm glad I submitted this question.

  54. Duplicity by Anonymous Coward · · Score: 0

    http://duplicity.nongnu.org/

    Looks like it needs some work though..

  55. Jungledisk by pamar · · Score: 1

    I understand this is slightly different from what you described in the request, but I'd suggest (and maybe others did already) to have a look at:

    http://www.jungledisk.com/

    It allows you to do all you mentioned, except it places your files in Amazon Storage. So you pay a (incredibly small) fee for the storage and everytime you move files around.

    Have a look.

  56. Brackup by slim · · Score: 1

    Brackup is a Perl script for doing incremental backups. It's a bit like JungleDisk (see other posts here), except the client is freeware.

    While JungleDisk uses S3 for storage, Brackup has the option to store on S3 or on a filesystem. You basically end up with (optionally) encrypted blocks, referenced by keys.

    I've taken a peek at the code. You wouldn't need to be much of a Perl guru to hack in FTP support if that's what you want.

    This isn't an endorsement for Brackup - I don't use it myself, although I've given it a trial run, been impressed, and may well take it further when I get around to it.

  57. A solved challenge, mind you by Sun · · Score: 3, Informative

    Rsyncrypto

    http://rsyncrypto.lingnu.com/

    Encrypts while making the above sentence untrue - a small change in the file results in a (relatively) small change in the cypher text.

    It's stable, been around a while, and is written by me :-)

    Shachar

    P.s.
    It is, in fact, written by me for the purpose of a commercial backup service. The software itself, however, is free.

    1. Re:A solved challenge, mind you by mdmkolbe · · Score: 1

      It's stable, been around a while, and is written by me :-)

      I believe rsyncrypto leaks information even if the attacker only sees one version (this is in addition to the diff based attack mentioned by others). As the author, would you agree with these analysis? Do have any further analysis of the security of rsyncrypto anywhere?

      I ask because I have thought about using rsyncrypto, but was stopped by what I perceived as insecurities, and I would like to give you a chance to correct me if I'm mistaken. (Yeah, diff based attacks may be a necessary evil, but attacks without even seing the diff are scary.)

    2. Re:A solved challenge, mind you by Sun · · Score: 1

      Re the analysis on slashdot - I posted an answer to the commenter there.

      Regarding the other article you pointed to - it has no diff based attack mentioned (that I could find). All the criticism I found there seems mostly done by people who either did not understand what rsyncrypto is meant to do, how it works, or (typically) both. Nothing useful there.

      To make it clear, the criticizing comments on linux.com were clueless, while the criticizing comment here was clueful and basically correct, though I disagree with its severity.

      In any case, if you want 100% secure, use the industry standard. Rsyncrypto is about performing a compromise. I believe you compromise extremely little security (if measurable), and gain a huge benefit in performance, but I will not claim this is not a compromise.

      For the record, I had a claim (even with sample implementation in python) by a friend who is a cryptologist that he has an algorithm that is not vulnerable to the "repeating cipher text" attack. Two problems. One is that the core claim was disputed by another friend who is also a cryptologist. The more serious one is that this algorithm is not O(n), and is definitely not one pass. Rsyncrypto is both, and performance is an important factor. There are people using rsyncrypto to encrypt files larger than 4GB, and you would want such encryptions to end in a reasonable time.

      Shachar

    3. Re:A solved challenge, mind you by mdmkolbe · · Score: 1

      By diff based attack I was referring to the fact that an attacker can know which parts of a file changed by diffing the old and the new encrypted files. This is a very minor leak and is to some extent(*) a necessary leak because the point of rsyncrypto is that you can take a diff. I only mentioned it to avoid confusion between the attack I mentioned and the diff-based one (but I seem to have generated more confusion as a result).

      (*) One way to avoid this problem is to use a full/incremental backup solution (store encrypted full and incremental backups) in which case you only leak "how much" a file changes rather than "where" a file changed, but that isn't rsyncrypto's objective.

    4. Re:A solved challenge, mind you by Sun · · Score: 1

      picrypt, by Eran Trommer. I doubt it was ever published. Google returns lots of results for picrypt, none of them seem relevant.

      Basic idea - prepare slots. Divide the file into sections using a decision function. Place the encrypted section in a slot based on its content (hash function). Keep a list of which sections go where in the actual file. If you are trying to encrypt a section that already exists, merely point to it twice. When you have processed the entire file, dump the memory in the order of the sections, followed by the list of sections.

      Advantages - no matter what the file looks like, you will never get a repeat. That is the part that was attacked by my other friend - details further on.

      Disadvantages - not one pass. Not even close. More computationally heavy, to the point of not being O(n) (arguable)
      - Does not solve any of the other attacks on rsyncrypto.

      As you can see, I thought the disadvantages outweigh the advantages.

      The counter claim to the advantages:
      The sections list have to be placed in the file somehow. As files can get quite large, it is important that the sections list also be, somehow, rsyncable. This means that instead of repeats in the actual data, you now get repeats in the sections list, and the precise same information can be gleaned from there.

      Like I said before - as I have failed to see a file one would actually like to encrypt where the repeat effect is witnessed, I call that attack "theoretical". When someone on the mailing list asked about running rsyncrypto without compression, I made it clear that what he'll get is a significantly reduced strength to the encryption.

      So long as all I hear is attacks I've been aware of when the algorithm was designed, I'm good :-)

      Shachar

  58. Sync over FTP by Anonymous Coward · · Score: 0

    you're trying to sync over FTP which inherently does not let you change the timestamps of the files you put up.

  59. Re:A slight oxymoron here. by Sparohok · · Score: 2, Insightful

    Access means they can decrypt them. Given enough cycles, encryption can be broken.

    What are you talking about? Encryption that can be broken with any feasible level of computing power is worthless. If you're assuming that once the bad guys get your ciphertext they'll be able to decrypt it sooner or later, why encrypt your data at all?

    Certainly I'd prefer to have my valuable data stored with both physical security and encryption. But if I had to choose one or the other, I'd definitely choose encryption. If you compare the cost of the security measure with the cost to circumvent it, strong encryption is many orders of magnitude better than physical security.

  60. Re:A slight oxymoron here. by thegrassyknowl · · Score: 1

    Are you sure about that? I consider my SSH connections secure even tho' they traverse untrusted links.

    Nothing can be truly trusted - encrypted or not. Sure, with a sufficiently large key and matching cipher then the content might be secret for your lifetime.

    Nothing is secure because it's only a matter of time/computing power to brute force it.

    --
    I drink to make other people interesting!
  61. Re:A slight oxymoron here. by squizzar · · Score: 3, Insightful

    All encryption can be broken. The solution then, is to ensure that the encryption cannot be broken within a useful timeframe. I really don't care if you manage to decrypt my credit card number if the card has already expired. If I'm having a secret meeting this time tomorrow then the encryption only needs to last just over 24 hours, since by the time you work it out it will be too late.

    I actually think you've got it backwards. Encrypt them strongly and you can put the data on a billboard in the centre of picadilly circus and no one will be able to work it out in a useful timeframe. Ever seen Kryptos? http://en.wikipedia.org/wiki/Kryptos The data is public, there are many thousands of people attempting to break it, and yet the hardest section remains unresolved. The acceptable risk is related to the minimum amount of time that you can allow for the code to be broken, which determines how strong you need your encryption.

  62. Re:vanilla ftp: your password will be in the clear by GauteL · · Score: 4, Insightful

    This may well mean that despite whatever you do, encypt etc, someone can sniff the password and then simply come in and delete all your files.

    i.e, whatever other steps you take, this is inherently worthless.

    Hardly. As long as the data is encrypted well enough to stop people from stealing or modifying the data in ways that could have serious privacy and financial implications this is a net gain in data availability.

    Even if the chance of someone doing this was as high as 5% over the period in question, it would still mean that there was 95% chance of you having a good off site backup. That is better than nothing as long as you realise that there is still a 5% risk and don't act like it is totally secure.

    As a simplified example; if your PC at home is 95% sure of retaining all of its data in the period and your portable USB hard drive is 95% sure of retaining all of the data, the chance of you losing any data at all is 0.0125%. Even with exaggarated risk factors, this is not bad.

  63. Use Cobian backup by kamikasee · · Score: 1

    I use Cobian backup. It has an option to backup to an FTP location. It also supports strong encryption and password protected ZIP files. It has options to do full/incremental/differential backups so on a daily basis you're only backing up changed files. It's windows only, but version 8 (Blackmoon) is open source, so you could probably tweak it for linux. Or virtualize it. Whatever. Heck if you wanted to do a Linux port, he might even release the code for the latest version to you. J

  64. encrypted FTP proxy idea by Anonymous Coward · · Score: 0

    I had thought of something like this a while ago.. what I came up with was basically a proxy FTP server, which encrypted the data and passed it onto the real FTPd..

    So when you PUT a file, it passes it to encFTPd, which encrypts the data on the fly (using something like gnuPGP or RSA keypairs?) and uploads that file to the real FTP server.

  65. Try Druvaa inSync by Anonymous Coward · · Score: 0

    Try Druvaa inSync (www.druvaa.com), the best feature is that it saves single copy of duplicate files saving time, bandwidth and storage.

    The files are encrypted and compressed during transition and on storage.

    and the best part if that its free for home users.

  66. Excuse the brevity, but this guy is an idiot by ekimminau · · Score: 1

    Im doing this and this an this and this and this and this to make sure my data is secure. I then I transfer it to an internet accessible site using an insecure protocol with clear text, unencrypted passwords over an unencrypted data stream where ANY host with a promiscuous mode interface on the same subnet (either source OR destination) could have his password, and complete access to all of his "secure data" within seconds of his first (and last) login. Answer: there is NO SECURE STORAGE using a NON_SECURE PROTOCOL. Next.

    --
    Armaments, 2-9-21 And Saint Attila raised the hand grenade up on high, saying, 'O Lord, bless this Thy hand grenade' N
    1. Re:Excuse the brevity, but this guy is an idiot by slim · · Score: 1

      Answer: there is NO SECURE STORAGE using a NON_SECURE PROTOCOL. Next.

      Just as a trivial counterexample - encrypt a message with S/MIME and you could securely store it as a MySpace profile.

      Building trustworthy layer atop untrustworthy layers is what cryptographic security is all about.

    2. Re:Excuse the brevity, but this guy is an idiot by ekimminau · · Score: 1

      "A tool that automatically steals IDs of non-encrypted sessions and breaks into Google Mail accounts has been presented at the Defcon hackers' conference in Las Vegas. Last week, Google introduced a new feature in Gmail that allows users to permanently switch on SSL and use it for every action involving Gmail, not just authentication. Users who did not turn it on now have a serious reason to do so, as Mike Perry, the reverse engineer from San Francisco who developed the tool, is planning to release it in two weeks." Building the impression of trustworthy on top of grossly untrustworthy is moronic.

      --
      Armaments, 2-9-21 And Saint Attila raised the hand grenade up on high, saying, 'O Lord, bless this Thy hand grenade' N
    3. Re:Excuse the brevity, but this guy is an idiot by slim · · Score: 1

      That's a complete non-sequitur.

      It has always been clear that Gmail was vulnerable to eavesdropping.

      SSL (which you seem to accept is secure) - is built on top of TCP (which is insecure) - which is built on top of IP (which is not even reliable).

      Likewise, if you encrypt stuff right, you can securely store it on an anonymous FTP server.

      Likewise, if you encrypt messages, you can broadcast them over short wave radio, and they're only of use to the intended recipient.

  67. encfs by eean · · Score: 1

    Encfs stores all the file permission and date info and each file individually. Just FTP the encrypted version.

  68. I was looking for the same thing by Anonymous Coward · · Score: 0

    I have a web host for my website where I have a lot of storage. I wanted to backup some of my stuff to the site for off-site storage from my house. So I asked them to enable SSH for me.. After that I'm using some of the suggestions seen in this article http://ttsiodras.googlepages.com/backup.html which covers using an encrypted file system on the other side.

  69. http://www.hiteksoftware.com (automize) by Anonymous Coward · · Score: 0

    Automize 8.

    -cp (Anonymous Coward)

  70. Two words by adolf · · Score: 1

    Thank you.

  71. Have you tried?? by Anonymous Coward · · Score: 0

    Have you tried super file sync..... It does everything you are asking at a reasonable cost... and last I saw it was multi platform.

  72. Re:vanilla ftp: your password will be in the clear by Anonymous Coward · · Score: 0

    Hardly. As long as the data is encrypted well enough to stop people from stealing or modifying the data in ways that could have serious privacy and financial implications this is a net gain in data availability.

    Until some bored 16-year-old script kiddie virgin decides to be a "1337 h4x0r" and delete all of the files because My Chemical Romance broke-up. One could argue that it's no loss in data availability (as you still have the data on the hard disk and your external disk), but that's not very comforting if your house burns down and you don't have your data.

  73. Re:A slight oxymoron here. by Anonymous Coward · · Score: 0

    It's a sad comment on the ambient understanding of data security that this got modded insightful.

    The fact that he said "Period." has me convinced.

  74. Nobody mentioned GPG by jfortman · · Score: 1

    At work we send secure student data over FTP to be scored and retrieve the scored data in the same manner. Instead of a secure channel we encrypt the data using each others' public keys. It's fairly easy to set up and use. http://www.gnupg.org/

  75. Re:vanilla ftp: your password will be in the clear by Anonymous Coward · · Score: 0

    I think you miss the point of the parent post. Even if all the files are encrypted, timestamped, hashed, verified, etc, all of that is relatively moot if it's all being stored on a plain vanilla FTP server. With a plain vanilla FTP server, anyone can easily sniff the password and have access to the encrypted files. Sure, they won't be able to decrypt and make use of the files themselves, but they can still delete them, which renders the "backup" fairly useless.

  76. Ahhh by Anonymous Coward · · Score: 0

    So, you really told the guy to quit using Windows.

  77. Cobian Backup by kbg · · Score: 1

    If you are willing to drop the Linux requirements then I think Cobian Backup has everything you need.

  78. Fixing the protocol doesn't help by DRue · · Score: 1

    Securing the protocol isn't an answer to the ops question. I certainly wouldn't trust my unencrypted files to a 3rd party. And if you're going to encrypt your files, the tranport method matters somewhat less (though I'd still prefer sftp especially for the authentication).

  79. iago by iago99 · · Score: 1

    rsync and for security rsync + ssh. There are both Server and Client versions of the software for Win, Mac, Windows. Or Unison. All of it is Free.

  80. PHP HTTPS by adamziegler · · Score: 1

    How about a php script that sits on the server accessed thorough SSL. Server Script is an upload script that accepts local files that you have encrypted, and a key. Local script can encrypt your files based on a key. One problem (of probably many more)... the encryption might secure. Another problem... I am assuming you can use PHP and SSL.

  81. Re:vanilla ftp: your password will be in the clear by GauteL · · Score: 1

    I think you miss the point of my post entirely.

    If you can make the risk of other people misusing the data minimal with encryption, the other concern is whether you can reduce the risk of losing access to the data yourself. For this the risk that someone will log in and delete the data is a risk like any other risk concerning data availability.

    Compare this to the risk of
    a) your hard drive failing
    b) your house burning down
    c) someone stealing your USB hard drive
    d) etc.

    Each of these risks are fairly small, and they can be combined to reduce the risk of losing the data.

    Similarly, the risk of someone deleting your data off an FTP store is a real, although fairly small risk and combining it with any of the above, decreases the chance of you losing your data.

    Thus it is not useless, it gives you additional data safety that you would not have if you didn't use this service. Remember: just because someone can sniff the passwords and delete your data, doesn't mean it will happen.

  82. PERL by Anonymous Coward · · Score: 0

    Ever heard of PERL?

  83. Maybe for backup by WillRobinson · · Score: 1

    While this is nice you just keep a fob for retrieving stuff remotely. Why not just get a 500G usb disk drive that works with all systems. Or even smaller laptop drive setup with usb?

  84. duplicity is the answer. by enselsharon · · Score: 1
    duplicity, as mentioned several times above, is _the answer_.

    For several years the project languished without a real maintainer and without an up to date, stable version, but because of this bounty:

    http://www.rsync.net/resources/notices/2007cb.html

    and because of the great work of Ken Loafman, there is a live and vibrant community of duplicity users and an up to date, stable version.

    I personally use duplicity on my own server as well as on my remote rsync.net storage space.

    BTW, this is not the first time that my provider, rsync.net, has gone out of their way to perform very useful, very pro-OSS work for the community ... as I say every chance I get, this says it all:

    http://www.rsync.net/resources/notices/canary.txt

  85. Thanks to John Kozubik, rsync.net, and Ken Loafman by enselsharon · · Score: 1
    Duplicity is the right answer, as I have posted elsewhere, and we owe great thanks to John Kozubik and the rsync.net team for proposing, and sponsoring, the continued development of duplicity:

    http://www.rsync.net/resources/notices/2007cb.html

    Prior to that bounty, duplicity had not been updated or worked on for a few years, and thanks to the claimant of that bounty, Ken Loafman, there is not only a new, stable version, but a responsive community working on the project.

    I use it every day, and now consider it indispensible.

  86. this is why ask slashdot should be shut down by Anonymous Coward · · Score: 0

    Don't help him. Don't tell him anything. He's a lazy asshole who wouldn't take the time to do the research himself.

  87. It doesn't mean what you're thinking by Anonymous Coward · · Score: 0

    Which you should have known if you'd read the GPL3 and Affero GPL3.

    But you'd rather spout FUD because you don't like GPL hippies.

    1. Re:It doesn't mean what you're thinking by Anonymous Coward · · Score: 0

      you mean like your doing right now? Like I said, it was the intent of some to put those provisions into the GPL3 when they were locking down everything under the sun. Just because they failed and had to create the AGPL. BTW, it is AGPL not AGPL3, the damn thing never existed until some people wanted to be lord of the flies.

      But you'd rather spout FUD because you don't like GPL hippies

      NO, I just like talking bad about a bad license. It has nothing to do with the asshats who think it is great or stand in line to suck Stallman's ass at all.

  88. MD5? PERL? by whitelabrat · · Score: 1

    Linux user eh?

    Seriously though. Get Cygwin for your Windows box and then write a PERL script to generate an MD5 (or SHA) hash of your file, then encrypt it using AES, and then upload via FTP which is PERL scriptable. That's all!

  89. Re:vanilla ftp: your password will be in the clear by Anonymous Coward · · Score: 0

    I understand now. Thank you.

  90. How about Unison? by JoeCommodore · · Score: 1

    http://www.cis.upenn.edu/~bcpierce/unison/

    Uses SSH (secure)
    Cross Platform (we back up our Macs to a Linux server with it)
    GPL
    Darn easy to set up and maintain (one app on the client and server, create a config file on the client, setup server backup folder for client data and that's about it)

    --
    "Enjoy what you're doing! If it becomes drudgery, you're doing it wrong!" - Jim Butterfield
  91. SSL *TOO BAD* for public FTP!!! by creaktive · · Score: 1

    You may not store individual encrypted files, as SOMETIMES the file length could be used to guess it's content!!! You should always encrypt & pack as many files as you can in a single archive to avoid this. However, this way you'll be unable to do incremental backups :(
    BTW, check out the "file length match trick" applied to the new ThePirateBay SSL system:
    http://slashdot.org/firehose.pl?op=view&id=803927

  92. gpg + ncftp + .sh or .bat by Mjec · · Score: 1

    It's relatively trivial to write a windows batch file and corresponding shell script to back up your files with the surprisingly-powerful ncftp, as encrypted and signed by gpg. It's not an all-in-one-executable solution, but it's pretty close. I reckon with a bit of effort you could even make your shell script and batch file the same file ;).

    --
    "But everyone should know everything." -markab
  93. EaseBkacup from Kiesoft by ccandreva · · Score: 1

    For Windows, I've found EaseBackup from KIE Soft to be a good, cost-effective solution.

    The same software can be used for backup to media or over FTP. It makes zip files, can pgp encrypt them, and support either incremental or 'patch' mode (where it only uploads essentially diff files)

    He has a Linux client, but I don't know if it reads the EaseBackup files.

    http://www.kiesoft.com/

  94. Re:A slight oxymoron here. by Sancho · · Score: 1

    Of course encrypting the file before hand is an option but then you lose the ability to browse the files without a special viewer that can read the encrypted files or decrypting them first.

    One of his four design requirements was "secure backup (encrypted and signed) to non-trusted FTP site"

    So yeah, it sounds like he means to leave the file encrypted on the remote host. Almost as if he doesn't trust the remote host, but wants to use its storage for backups.

  95. What's wrong with Amanda? by Anonymous Coward · · Score: 0

    http://amanda.zmanda.com/

  96. Brackup. by mystik · · Score: 1

    I stumbled upon brackup not too long ago, trying to solve a similar problem.

    I believe brackup solves (1) I believe they want to support windows, and test on it, You can put the script + cygwin on a usb drive (2) (Dunno if it has an ftp plugin, but you can snag a perl dev to add that; it supports amazon s3, and sftp at least), (3) supports incremental updates, (4) does that too.

    http://search.cpan.org/~bradfitz/Brackup/

    Svn trunk and his release here:

    http://brad.livejournal.com/2205967.html

    --
    Why aren't you encrypting your e-mail?
  97. Re:A slight oxymoron here. by MagdJTK · · Score: 2, Insightful

    I think you've missed the point. If you're not allowing access to the files then encryption isn't particularly important now is it?

    The whole point of encryption is that you could email it to your arch-nemesis and they would still be unable to decrypt it in a useful time-frame. Take AES with a 256 bit key. That would (on average) take all of the computers in the world millions of years to brute force. It's possible that someone could get lucky, but they'd have to dedicate years of processing time on the off-chance that you had encrypted something particularly juicy.

  98. Mount the FTP site as an encrypted volume. by Medievalist · · Score: 1

    OK, there are ways that you can treat an FTP site as if it were a disk volume. Start by looking that up.

    Now, encrypt the volume. If anyone mounts it without the volume crypto key they get gibberish.

    Use Mike Rubel-style rsync-based backup methods (with or without batch mode files as you wish) to make your backups to the encrypted volume. The encryption will happen on your side so the keys and unencrypted data will never be passed over the insecure FTP connection to the insecure site.

    You'll want some kind of checksum/hash/whatever so you can detect tampering or bit rot, but I'd expect that a good crypto filesystem will already have something of the sort.

    Note, I haven't actually done this - I use SFTP instead of FTP and I don't use untrusted sites to store backups - but it'll work in theory, and I've seen all the pieces of it in various places.

  99. Re:A slight oxymoron here. by sumdumass · · Score: 1

    That's fine and all but it isn't terribly convenient. I'm not sure how many times I have needed to restore a specific version of a file and looking at the file for the specific content is the best/most reliable way to do so.

    Another note, storing a file like that is like putting your savings deposit in a bank bag with a lock on it and then just putting it on the sidewalk for strangers to see. One of them, maybe by looking where they shouldn't could think they could open it and take it then you don't have what you need when you need it. Regular FTP transmits usernames and passwords in the open which sort of makes anyone capable of sniffing either connection capable of accessing the files to do whatever with.

  100. Don't be so sure. by Medievalist · · Score: 1

    Answer: there is NO SECURE STORAGE using a NON_SECURE PROTOCOL. Next.

    Sure there is. I will encrypt my 10 KB file of sensitive data and bundle it up with 10,000,000 similarly sized files containing pure random gibberish, and upload the whole mess to two dozen different FTP sites. Only I will know the name of the one file that contains encrypted data, and you can have the time of your life wasting your botnet time on attempting to "decrypt" all that trash. Elaborations on this theme abound, I'm sure there are plenty of ways to securely store data over insecure protocols.

    1. Re:Don't be so sure. by Anonymous Coward · · Score: 0

      Answer: there is NO SECURE STORAGE using a NON_SECURE PROTOCOL. Next.

      Sure there is. I will encrypt my 10 KB file of sensitive data and bundle it up with 10,000,000 similarly sized files containing pure random gibberish, and upload the whole mess to two dozen different FTP sites. Only I will know the name of the one file that contains encrypted data, and you can have the time of your life wasting your botnet time on attempting to "decrypt" all that trash. Elaborations on this theme abound, I'm sure there are plenty of ways to securely store data over insecure protocols.

      Security by obscurity isn't security.

      The point is, why place data you are trying to keep secure in an environment where you give away the password, in clear text, every time you access it? Are you REALLY arguing that this is intelligent by design?

    2. Re:Don't be so sure. by Medievalist · · Score: 1

      Security by obscurity isn't security.

      Security by mindlessly parroting buzzphrases is better? Here, I've got one too - Wikipedia says "it can be argued that a sufficiently well-implemented system based on security through obscurity simply becomes another variant on a key-based scheme, with the obscure details of the system acting as the secret key value."

      If relying on restricted knowledge to control access is so bad, then tell me all your user IDs and passwords! You've got no need to hide them, right? Revealing these details of your security system is totally safe since you don't rely on obscurity, right?

      The point is, why place data you are trying to keep secure in an environment where you give away the password, in clear text, every time you access it? Are you REALLY arguing that this is intelligent by design?

      No, I have made no such argument, and there's no need to put such words in my mouth. The original poster asked a question, and somebody (you?) made a false statement which I refuted, and now you are throwing straw men around and contradicting yourself.

      Secrecy is usually a vital part of good security in the Real World [tm]. The catchphrase "security by obscurity" is great in the lab, but most enterprises cannot afford security systems that will withstand full disclosure of all access mechanisms. Feel free to publish your passwords and prove me wrong.

  101. Clarification by Sun · · Score: 1

    I did "dd if=/dev/zero of=/tmp/test" for a 200MB file. Encrypting it with rsyncrypto resulted in zero repeats that I could find. In 200MB of zeros, not one ciphertext repeat was generated. This was due to non-alignment between the decision function triggers for the compression and the encryption, which meant that the same IV block for the encryption part started on different places in the compression block, resulting in no repeats over the entire 6.3MB of encrypted file.

    The source is out there. Feel free to run your own test.

    Shachar

    1. Re:Clarification by mdmkolbe · · Score: 1

      As you say the compression does eliminate the repetitions in the plain text that the attack I mentioned depends upon. For example if you turn off compression with "--gzip=my-gzip.sh" and my-gzip.sh contains just "cat", then the text will clearly repeat every 8KB while in default mode with compression I found no direct repetitions. (This surprises me since the compressed file is the same 8 bytes repeating so I would have thought there were only 8 alignments where each rsyncrypto block could start so there should have still been repetitions.)

      However, not being a cryptographer myself, it is not clear to me whether even with compression there might be a more complicated pattern that remains after compression that is still detectable in the cipher text. For example, if an attacker watches a lot of rsync changes, over time he should be able to figure out where the rsyncrypto block boundaries are. With this information one knows that the first cipher block of each rsyncrypto block is encrypted with the same IV. This then reduces to the problem of cracking multiple small texts with the same IV. With CBC mode, I'm not sure how safe sharing IVs is considered. (*ducks* for the drug puns)

      I hope this comes off in a good natured way. It would be nice if there was some academic paper out there analyzing the security of the system that rsyncrypto uses. But in that absence I'm just trying to think of all the ways an attacker could break it, before trusting my data to it.

    2. Re:Clarification by Sun · · Score: 1

      I'll tell you what - you take it to the mailing list, and we can try to figure the answer out.

      Like I said before - this scheme is definitely not as secure as CBC. It's just the "how much less" that I am not worried about, assuming you encrypt real files and not files you generated to be worst case.

      Shachar

  102. This is a short but fun security exercise by Beryllium+Sphere(tm) · · Score: 1

    Every part of that is right, but what he's doing might still make sense from a risk analysis point of view.

    Any security person is going to hate seeing a vulnerability as gross as a plaintext password when there are zero-cost alternatives, but look at the threats and impacts.

    If someone overwrites his backups, he'll detect it via the signatures. So overwrite and deletion have the same impact. The impact is limited by his other backups. The likelihood -- I'd say "certain in the long run", which is also true of defective backup media, which would have the same impact (losing one or more files).

    Overlooked risks: FSM help him if he uses the same password anywhere else as he uses for the FTP session. Plus, do a threat analysis. What is going to be the motivation for the attacker here? We're talking someone who is sniffing an ISP's traffic. OP's username/password pair is going to be among the least interesting to an attacker with human limitations. Random vandalism is frowned on by old-school intruders and doesn't bring profit to contemporary financially motivated ones, so though it's going to happen eventually other things are more likely. By the time someone deletes his backup, there will have been multiple incidents of his storage being used as a warez drop or worse. Would the illegal files get "restored" to his working machines? Working from a catalog file and checking the signatures would prevent that.

    This kind of analysis is overkill here, but you need it in general for real-life security issues. In summary, he's actually adding protection by making one more backup, unreliable though it will be, at the cost of increasing legal risks and spending time to monitor for unwanted files.

  103. Definition for Oxymoron by spitek · · Score: 1

    Will people PLEASE stop using "FTP" and "Secure" in the same sentence!?!?! We've been over this before. Unless you are referring to the "SFTP" functionality provided by SSH/SCP, just don't do it.

    1. Re:Definition for Oxymoron by JSBiff · · Score: 1

      Not really.

            All SSH/SCP do is encrypt your traffic during transmission. The file data is decrypted on either end of the transfer. It sounds like this guy is looking for a solution that encrypts the files *before* transmission, and keeps them encrypted on the ftp server. If you encrypt the files before transmission, they are then also encrypted *during* transmission. So, what this guy wants is actually *more* secure than SFTP because the data remains encrypted in storage on the ftp server.

            What's wrong with that?

            I can think of a few individual tools that could be used together to form a solution for this type of thing, but I think this guy is looking for an all-in-one tool to do this automatically (something I've also kind of wished for - sometimes you just want something that will individually encrypt files [not a zip or tar type archive file, or a truecrypt style encrypted virtual-drive, because if a single file changes, you have to upload the entire archive again], and upload new versions of only files which have changed since the last backup, automatically. It would be very nice to have something like that to use with all of the online-backup services out there which are like $5 or $10 a month, and which you don't really want to trust with unencrypted data.

            This is not an Oxymoron, this is a perfectly legitimate problem for which it seems like a solution *should* exist. I've not found it yet, though. I, too, would love to hear about such a solution that is also open source (I've seen a few proprietary systems which might have been able to do this).

    2. Re:Definition for Oxymoron by spitek · · Score: 1

      Not to mention all I have to do is grab your CLEAR TXT ftp passwd and I have access to all your data. Once again.. FREAKING RETARDED.. Why not just use a transport protocol that is actually secure. Than you would have "Secure Data Storage with SCP and and Encrypted file system" or whatever.

    3. Re:Definition for Oxymoron by JSBiff · · Score: 1

      If you have the ability to 'eavesdrop' on my connection to the server (which you would likely need to grab my clear text ftp password), then you already have my *encrypted data*. While there still might be some benefit to people not being able to snag your password, it's only that they cannot upload stuff to your account or delete stuff on your account (which would be bad). As far as *getting your data*, SCP/SFTP provides no additional protection over encrypting your data with another program and uploading the encrypted data to your server.

  104. Re:Thanks to John Kozubik, rsync.net, and Ken Loaf by Anomylous+Howard · · Score: 1

    Duplicity rocks. I'm a long time user.

  105. Re:vanilla ftp: your password will be in the clear by mxs · · Score: 1

    Your comment, likewise, is inherently worthless.

    Yes, the password could be sniffed. No, this does NOT make the whole system worthless. It very much depends on what attack-vectors you are trying to mitigate. It is perfectly sensible to use unencrypted FTP if the server is on the same, non-internet-facing switch, for instance. Plenty of hosting providers will offer you FTP space to back up your server's data, too -- and it'll never leave their network. The better ones put a secondary interface in a vlan of its own, together with the backup server.

    FTP is still quite usable if you do not need encryption -- and yes, there are cases where encryption is just not needed and only unduly burdens the CPU.

    It may be useful in the author's case, though -- but even there it's a risk assessment -- what's the risk of his hard disk frying and a cracker deleting his backup server's contents at the same time ? How does it compare to the cost of that backup provider ? Is the trade-off acceptable ?

    But yeah, blabber on about inherently worthless stuff.

  106. Once again.. by spitek · · Score: 1

    Whats the point of storing it encrypted if your going to TRANSMIT it in clear text.. Freaking retarded.

  107. PowerArchiver by Anonymous Coward · · Score: 0

    Have you looked into PowerArchiver? I think it has at least some of the capabilities you're looking for, maybe all.

    www.powerarchiver.com

  108. Re:vanilla ftp: your password will be in the clear by Aazn · · Score: 1

    sftp?

  109. backup to ftp by Anonymous Coward · · Score: 0

    http://www.ahsay.com/en/home/index.html

    This backup system does everything you want.

  110. Encrypt all your files, then upload. by guruevi · · Score: 1

    The simplest way would be to use an incremental rsync backup script, encrypt each individual file (or directory) in bulk as well as it's increments and upload the changed files to FTP with a decent syncing script. You'll need a local image of your backup though. Otherwise, find another storage area.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  111. Read the files by failedlogic · · Score: 1

    After reading your submission, since there's no RTFA applicable, I took a look at the files on the FTP server in question. Your book proposal for a "Dummies Guide to Dialing Telephone Numbers " isn't going to be a bestseller let alone worth all the hassles of asking Slashdot for opinions. Sorry! ;)

    1. Re:Read the files by hmckee · · Score: 1

      That was funny!

  112. I tried something like this by Eil · · Score: 1

    I tried doing something like this a few months ago. I have a colo in a datacenter with an empty 250GB disk and wanted to use it to back up the contents of my file server at home. I needed secure authentication, transmission, and storage. And although I'm not doing anything illegal nor do I distrust the datacenter staff, I didn't want to keep any encryption keys on the colo box itself. My homebrew solution was to use SSHFS (which uses FUSE) combined with EncFS (also uses FUSE) plus rsnapshot to do the incremental backups.

    This worked, but with one major flaw: the datacenter routers have a tendency to reset TCP connections after some random amount of time (between 1 minute and several hours, usually) whether there is any traffic on the connection or not. (I've tried talking to their networking staff about it, since it affects regular SSH sessions as well but they insist that it's a feature rather than a bug.) SSHFS isn't smart enough to deal with a broken connection and instead of reconnecting or issuing an error, the client just blocks forever when accessing the then non-existant device.

    Because of this setback, I've nearly resigned myself to buying an external USB hard disk and doing my off-site backups sneakernet-style. I'm happy to entertain any suggestions on an encrypted remote filesystem that works (or at least breaks gracefully) with unreliable connections.

  113. This may help by Anonymous Coward · · Score: 0

    This software encrypts files and compresses them and allows you to customize the encryption so that other copies of the software can't decode your files.

    http://www.download.com/The-Vault/3000-2092_4-10580448.html?tag=lst-1&cdlPid=10714591

  114. Getting tired of U by Anonymous Coward · · Score: 0

    And everybody who looks like you.

    You don't understand core concepts, have a laundry list of imaginary needs and can't tell fuck from reality, then troll your get your happy ass on Slashdot looking for clues. Lemme put it to you straight pud... Your the kind of guy who can't handle security so give it up and go through life as though you have none, which in the final analysis you don't and probably never will. Schmuck.

    FTP? Unsecure host? You figured out part of an answer being encryption but then have the audacity to dream rsynch or similiar. Via FTP over an unsecured link to an unsecured host? Even better your so called host won't lift a finger to help you. Who can blame them not wanting to waste time on some cheap clueless pinhead who can't comprehend hosting economics.

    Ok nutter, listen up. You need an encrypted link and I don't care how you do it. Second, give up on partial updates within archives. You might have some success using WebDAV over HTTPS but don't hold your breath. If all you have to work with on the other end is FTP then your SOL. You could FuseFS over FTP but your username/passwords are in the clear which is the problem with plain unwrapped FTP in relation to security.

    But then you don't know any of that having nothing more than a laundry list of dreamy wants and wishes, no fundamental understanding and even less resources to work with. Fucking luzor. Now hop on here and tell us where to send the bill for wasting our fucking time you piece of shit.

  115. Why is this so hard?!?!?! by multimediavt · · Score: 1

    (1) multi-platform (Windows and Linux), stand-alone client (can be run from a portable drive). (2) Secure backup (encrypted and signed) to non-trusted FTP site. (3) Sync individual files without saving to a giant tar file. (4) Securely store timestamps and file names on the FTP server.

    TrueCrypt (answers items 1 and 2, other posts talk about why signing is or is not needed) plus rsync (answers items 3 and 4; read the man pages on how to preserve time/date stamps and use an encrypted transfer protocol) and you're done. You don't seem to care about transferring whole files, as long as they aren't tomes of files and you don't seem to care if the transmission of said files is secure (nor its storage location for that matter).

    I think the issue here for you and others is mostly psychological. I don't think you (the OP) is comfortable with your level of security and I think a lot of folks in this thread that are posting are uncomfortable with your level of security because their either a). exceptionally paranoid (acceptable, but sometimes silly) or b). don't know enough about what you're really doing to be able to answer you effectively. It sounds like you're relatively new to this whole "encrypted-backup-offsite-storage" thing and you need to do some more homework. Google is your friend. Asking /. is not usually a good idea unless you have a clearly defined question in mind and a lot of details to share, or you want a lot of useful but somewhat overkill answers along with the occasional troll and mocking answers.

    1. Re:Why is this so hard?!?!?! by hmckee · · Score: 1

      I've been doing this "encrypted-backup-offsite-storage" thing for a while and so far none of the solutions have been adequate. It would have been ideal to find an all-in-one solution rather than having to write scripts or use the combination of TrueCrypt and FileZilla.

      As I pointed out in a earlier post, I should have removed the word "non-trusted" from the description. I also should have pointed out that I'm saving files to a web hosting server. After learning a few things, I'll probably go back to using Amazon S3 and JungleDisk.

      I did quite a bit of searching on Google and SourceForge and got the same answers that most everyone posted. Some even posted solutions that I noted I had already tried. So much for reading the question. The best thing I got out of this were solutions that I could not find and that someone pointed out this may be a violation of my terms-of-service. I also got the occasional troll and mocking answers, many of which gave me a good laugh. It's also nice that if anyone else tries this or wants to do it, they'll be able to find this thread, learn a great amount about security and apply it to their own needs.

  116. fuse-ftp+encfs? by Anonymous Coward · · Score: 0

    fuse-ftp+encfs?

  117. Re:vanilla ftp: your password will be in the clear by Anonymous Coward · · Score: 0

    Too bad it's complete nonsense. Many of the same factors that create that 5% risk of loss overlap to both systems: viruses, fire, software errors, etc. Even if those factors are only 1/5 of that 5% risk of loss, their overlap for the two media will keep the overall risk at roughly 1%. This is basic statistics, which you should have learned by doing the actual science and engineering and gathering actual data, instead of just juggling numbers with a calculator.

  118. Secure file storage over insecure FTP by Anonymous Coward · · Score: 0

    Why look for a 'secure' solution and then use an insecure protocol like FTP?

    Use SFTP if you want to do that. Accept that you will probably have to script some things.

    If you don't like that then buy another hard drive, do a backup to that and keep it offsite in a secure location.

  119. The answer is... by hmckee · · Score: 1

    Thanks to many informative posts, I've figured how I will move forward with this, before I get to the answer a few comments.

    I should have removed the word "non-trusted" from the description since the FTP server is one my accounts to which only I have the password. With this in mind, I can trust the FTP server as much as they can be trusted. Also, I would not use the same password for the FTP account and file encryption. For the one stop tool to answer the question, it appears that manent might fit the bill. A tool that I did not find when searching Google and SourceForge, but was on Freshmeat.

    It was obvious to me that I was trying to build a secure pseudo-filesystem on top of FTP and I should have expanded my search to include that. That probably would have pointed me to the FUSE solution (which is not yet platform portable on the client end).

    I also should have noted the point of this was to backup selected files to the FTP space on my web hosting service. My thought was, "Why pay for more storage elsewhere when I have this spare storage available?" As someone noted, this is probably a violation of my terms of service (and it is) so I will not actually use this to backup/sync my personal files.

    So what is my solution? Since I will not be storing that much, I will probably go back to using Amazon S3 and JungleDisk, which I've already used and satisfies all the requirements. But if my hosting service ever allows backups to FTP, I'll probably go back to doing just that.

    Even with all the trolls, ridicule and flames (many of which I found quite funny), I learned of a few interesting projects that never appeared in any of my searches. I hope that someone else finds this article educational, too.

    1. Re:The answer is... by glop · · Score: 1

      Hi,

      I am also looking at allmydata.org Tahoe.
      They also sell the service for 5$ a month.
      It's peer to peer though, so if you don't use their service you need to setup servers not just use existing FTP servers...

         

  120. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    SSH attempts to secure the untrusted lines or roads the information is taking when the two endpoint are secure. It doesn't secure the endpoint.

    Except in this case, the endpoint is the user, not the FTP site.

    Of course encrypting the file before hand is an option but then you lose the ability to browse the files without a special viewer

    Sounds like he's asking for just such a viewer.

    --
    Don't thank God, thank a doctor!
  121. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    Another note, storing a file like that is like putting your savings deposit in a bank bag with a lock on it and then just putting it on the sidewalk for strangers to see. One of them, maybe by looking where they shouldn't could think they could open it and take it then you don't have what you need when you need it.

    Doesn't really work -- if they wanted to try to see what's inside it, they would copy the file (you can't copy a bank bag). For them to actually delete the file would require more than that -- it would have to be a deliberate act of malice.

    Given that the files would also be signed, that's the worst they can do -- delete the file.

    Now, I agree that it'd be better to do this some other way. That said, suppose I gave you free FTP access to a server with, say, 10 terabytes of space on it. For some reason, it's trivially easy for me to give you this FTP access, and be reasonably sure you can't do anything other than store files on it, but I'm hopeless to give you any more secure access.

    And of course, you don't really trust me, anyway.

    So the question arises -- would you rather take your chances that your backups could be destroyed, but not read? Or would you rather pay for backup (implying that you trust the endpoint more than me)? Or would you rather not backup at all?

    All of this is very hypothetical, as that situation does sound contrived, even to me. But the idea of having an encrypted backup isn't a bad one -- I can see myself paying for storage on something like Amazon S3 (or, hypothetically, a cheaper competitor), but I can't really see myself trusting Amazon with everything I'd want to backup (SSH keys, porn browsing habits, etc). So if I was to do something like this, I'd probably encrypt the files.

    --
    Don't thank God, thank a doctor!
  122. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    Nothing is secure because it's only a matter of time/computing power to brute force it.

    Ah, but you see, when the time required is longer the heat-death of the universe, and the computer needed would have to be assembled from all of the matter in the universe, I'd call that pretty damned secure.

    And the math behind that is simple: CPU time required to encrypt scales linearly. CPU time required to crack scales exponentially. A 4096-bit key is that secure.

    No, it's not brute force. It's something you haven't thought of, like trusting your girlfriend with your password, or leaving your private key on a laptop that got stolen. Or you thought DRM could work, which means you gave the key to the attacker and hoped they never used it.

    Or it's quantum computers (which also fall under "something you haven't thought of"), but that's because they operate in a fundamentally different way -- with a quantum computer, the time to crack scales linearly, meaning it really is only a matter of time -- to crack RSA. But people are already working on crypto schemes which would work well with quantum computers.

    Again: Quantum computers don't kill RSA because they're faster. They kill RSA because they're different.

    --
    Don't thank God, thank a doctor!
  123. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    Access means they can decrypt them. Given enough cycles, encryption can be broken.

    When "enough cycles" is going to take them longer than the heat-death of the universe, I don't care.

    Look, I know Uplink makes it look easy. The real world doesn't work that way.

    --
    Don't thank God, thank a doctor!
  124. You could encrypt the file before sending it FTP. by drfreak · · Score: 1

    Although I prefer SFTP because the exchange is secure as well as the contents, I've run into the scenario more than once where the other end either does not understand how to use SFTP or prefers to encrypt the files themselves instead.

    PGP (or GPG for a free option) will allow you to encrypt any file before sending it. It also has the added benefit of only encrypting the file with the public key of your intended recipient. That way, even if a man-in-the middle grabs your file stream or hacks the FTP server, your file is still relatively safe.

  125. Secure Transport by Anonymous Coward · · Score: 0

    www.tumbleweed.com

  126. Areca Bar none by DesertBlade · · Score: 1

    Been using it fo over a year and it is great. http://areca.sourceforge.net/ Encypts, does incremental and ftp to my personal site, can't beat it. Even did a restore once from it very smooth. Has everything you could ever want.

    --
    Half of writing history is hiding the truth.
  127. http://www.iqstorage.com/applet/ by the_cyman · · Score: 1

    You can try: http://www.iqstorage.com/applet/ That's a free FTP applet, but it doesn't address all of your problems. It is cross platform, supports all type of encrypted FTP, easy interface, etc.

  128. Take a look at Secure FTP. by Anonymous Coward · · Score: 0

    It's written in Java, therefore works on all platforms. And the command-line client may do what you want. http://secureftp.glub.com

  129. You know what they say about spelling perl by patio11 · · Score: 1

    TIMTOWTDI

    I sort of prefer spelling it "ruby". You may have heard of it -- it is like Perl. It supports descriptive identifiers, comments, and (mostly) sane code organization. Unlike Perl, its programmers are encouraged to use these language facilities, rather than laughing them off as crutches for the weak.

    If I sound bitter, blame 60k lines of Perl accompanied by 100 lines of comments written in barely literate Japanese and spread over 200 files. Yes, that does mean that many files had no comments whatsoever. After all, the reason e_st_item.pl exists should be obvious, right? (Screen for student course registration screen #3, in English.)

  130. Sometimes the easiest solution... by Anonymous Coward · · Score: 0

    No, rsync isn't a very good solution for a couple of reasons. First, unless there's some capabilities that I'm not aware of, rsync has no encryption capabilities....

    Woah, stop right there. First, it would appear that you don't encrypt your files automatically locally before any type of remote sync. All things being equal given your local Security policy being the weakest point, perhaps the easiest solution is to find and/or build a trusted remote storage point? PuTTY SCP/SFTP could probably handle such a task if perhaps some of the concerns of untrusted destinations and crypto for cryptos sake were modified. Again, as another has pointed out, perhaps the easiest solution is to find the real problem

  131. Re:A slight oxymoron here. by sumdumass · · Score: 1

    Except in this case, the endpoint is the user, not the FTP site.

    Well, yea, that is the point unless I wasn't clear. SSH doesn't make an insecure endpoint secure. It simply secures the transmissions to the endpoint.

    Sounds like he's asking for just such a viewer.

    Good luck. That will be bandwidth intensive as hell with no server side support.

  132. How about Ant? by inline_four · · Score: 1

    I've had several backup/maintenance schemes set up at home over the years, often spanning Windows and Mac machines. Being a Java guy, I found Apache Ant to be a really good tool in place of shell or batch scripts. It's cross-platform, and it's quite extensible. And of course Java has pretty comprehensive cryptography API. And it wouldn't be much to wrap it all in a decent GUI, if that strikes your fancy or you want to roll it out to someone else to use, who's not comfortable with the lower level stuff.

    --
    Alexey
  133. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    That will be bandwidth intensive as hell with no server side support.

    Moreso than FTP itself? If so, how so?

    --
    Don't thank God, thank a doctor!
  134. SSH host auth by dolmen.fr · · Score: 1

    SSH will ask you to accept the host key the first time you connect to this host.
    This pain is acceptable if the number of hosts in the pool is low. But an ISP may have tens or hundreds of servers in the pool. So host authentification can not be efficient if you connect each time to a different host.

    How many hosts is there in the Cornell ECE department's pool?

  135. How Long Ago Did You Ask? by bill_mcgonigle · · Score: 1

    They basically said that it wasn't possible to provide that on a shared host.

    It wasn't easy or secure to do until recently. I think it was earlier this year that OpenSSH released trivial jail support. Figure out which version of OpenSSH they're running, and if it's current it might be time to ask again, with a link to the directions.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  136. Informative? by Apro+im · · Score: 1

    Really? +5 Informative? I suppose it contains information, which would be relevant to many questions about cross-platform encryption, but this doesn't seem really in the neighborhood of what the OP is asking for. They want a tool for uploading small encrypted files to a untrusted server, and the solution is to create an encrypted volume on the server (with, by the way, no mention of how to easily mount it over FTP).

  137. Re:A slight oxymoron here. by sumdumass · · Score: 1

    Doesn't really work -- if they wanted to try to see what's inside it, they would copy the file (you can't copy a bank bag). For them to actually delete the file would require more than that -- it would have to be a deliberate act of malice.

    And if they had access to copy the files what make you think they wouldn't go the malice route? They are already in an area they aren't supposed to be which show some malice in disregard of the rules. And your only right about the bank bag because we lack the specific technology to duplicate the bank bag with all it's contents. But there would be nothing stopping the person from cutting and pasting the file (from windows) which would be the same as taking the bank bag.

    Given that the files would also be signed, that's the worst they can do -- delete the file.

    Ok, lets say that is all they can do. Why is the file being backed up? Whats going to happen when it isn't there if you need it? Or that specific revision of it?

    Now, I agree that it'd be better to do this some other way. That said, suppose I gave you free FTP access to a server with, say, 10 terabytes of space on it. For some reason, it's trivially easy for me to give you this FTP access, and be reasonably sure you can't do anything other than store files on it, but I'm hopeless to give you any more secure access.

    And of course, you don't really trust me, anyway.

    So the question arises -- would you rather take your chances that your backups could be destroyed, but not read? Or would you rather pay for backup (implying that you trust the endpoint more than me)? Or would you rather not backup at all?

    Well, fist of all, I wouldn't be under any illusion that any security was there at all. That means nothing sensitive, nothing critical, and nothing that would/could potentially cause trouble would be stored there. Second, I would probably use the storage for non-important stuff or as a layer of convenience for stuff that isn't important like I already stated. This might include keeping copies of programs I use a lot so I can download on if needed, it might include copies of websites that are already public, maybe code for OSS software I'm working with (I'm not programing but already patched something to work in a specific environment) and stuff like that. It would be a convenience for non secure stuff but it would be in addition to other measures that ensure it isn't lost or corrupted and is availible is needed.

    With all that being said, no, I wouldn't trust you because I know how the security of FTP works. This doesn't mean I wouldn't use your offer, but I wouldn't use it for anything important regardless of how many times I encrypted something. And yes, I would pay someone for a more secure backup that I could trust. Even if that backup person is me with a collocation somewhere.

    All of this is very hypothetical, as that situation does sound contrived, even to me. But the idea of having an encrypted backup isn't a bad one -- I can see myself paying for storage on something like Amazon S3 (or, hypothetically, a cheaper competitor), but I can't really see myself trusting Amazon with everything I'd want to backup (SSH keys, porn browsing habits, etc). So if I was to do something like this, I'd probably encrypt the files

    Encrypting the files isn't the issue here. Or at least it isn't the ones I'm raising. The problem is that of an illusion that encryption would do anything to make you more safe and reliable. Hell, I'm not even sure that the files would actually be safe from being read even if encrypted. A brute force attack on a AES-256 bit key spread out over a 1.5 million node bot net could get lucky a couple of times.

  138. Re:A slight oxymoron here. by sumdumass · · Score: 1

    With no server side support you would have to transfer the entire contents of the file every time you you wanted to view the encrypted file. Then if it isn't what you want, it would transfer all back. With plain FTP, it just gives you the header name so you can see the file is there in much the same way as ls or dir displays a directory listing. If you want to view the contents, you have to download it or the server can render it like a HTML if it is plain text depending on how it is configured.

    With server side support, you can create a secure connection, have the server decrypt the files as needed, render the contents in a viewer that transmits only the characters your looking at, at a time. In this case, only what your looking at gets transfered and is done so in smaller chunks over a secure connection. You can even use server side support to open large archives or zipped files and present individual files within them. I remember doing something like that (without the encryption) at an accounting firm on a novel net ware server back in 1999 or so. We kept their master documents in a password protected rar file and a viewer/explorer app that would open whatever text editor/word processor they wanted inside it, allowed it to be edited and stored somewhere else. I now it cuts the transfer size down enormously and it sounds just like what he wants.

  139. brackup by Taral · · Score: 1

    I think brackup supports your particular use-case. It was originally designed for backing up to S3.

    --
    Taral

    WARN_(accel)("msg null; should hang here to be win compatible\n");
    -- WINE source code

  140. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    With no server side support you would have to transfer the entire contents of the file every time you you wanted to view the encrypted file.

    Erm... why? I don't have to read the entire contents of my encrypted partition every time I want to seek somewhere in it.

    Then if it isn't what you want, it would transfer all back.

    WTF?

    This kind of makes me question your understanding of computers beyond "This is a mouse."

    It's called copying. I download the file to view it, which is copying it -- if I didn't want it, I do not then have to re-upload the entire file -- it will still be on the server, because I copied it, not moved or deleted.

    That's probably not what you meant, but the way it's worded, it sure as hell looks like it.

    With plain FTP, it just gives you the header name so you can see the file is there in much the same way as ls or dir displays a directory listing.

    Right.

    If you want to view the contents, you have to download it

    FTP supports resuming a download. Even if it doesn't support specifying that you only need some tiny chunk of it, you can always close the connection (canceling the download) once that amount has been transferred.

    So no, you don't have to download the entire file.

    Same with HTTP -- only moreso; I believe you can request a specific byte range of a file.

    you can create a secure connection, have the server decrypt the files as needed

    Both of which assume you trust the server -- because the server now has unfettered access to your files.

    I don't know about you, but I'm a little more paranoid. I'd rather the server not be able to get at my files.

    render the contents in a viewer that transmits only the characters your looking at, at a time.

    Ok, first off, that is a retarded idea, if you're actually talking about characters (as in, chunks of a text file). Text is small enough, and compresses well enough, that it makes more sense just to send the whole file. It'll use more bandwidth, but it will perform much better, because you won't need a roundtrip to page down.

    I'll grant that it does make more sense for low-latency, low-bandwidth scenarios. But I can't think of such a scenario -- the only place where that bandwidth might matter is dialup, which tends to have a high latency, mostly because it has so little bandwidth that any other, simultaneous activity will saturate the connection and slow everything down.

    Second, as stated above, there's absolutely no reason you can't do this with encrypted files stored via FTP.

    You can even use server side support to open large archives or zipped files and present individual files within them.

    And you know what? You can use client-side support to do that, too!

    For a really impressive example, take HTTPFS -- you can mount an ISO over HTTP, and it's actually fast enough to browse files and such.

    The only place where this would matter is for things like tarballs -- in which case, you're forcing the server to read the entire archive from disk (probably decrypting it in the process) before sending pieces of it back.

    For an archive of any size where it'd make sense to do this, it probably makes much more sense to unpack the archive, or repack it as something like Zip, which is seekable -- and either situation puts us back to Square 1, where encrypted files over FTP can do the same thing.

    Now, given the question that was asked, I'm assuming it's massively easier for him to add client-side support for this than server-side support. Given what I've just explained above, you can get almost all the same features with client-side supports, and the only ones that would really benefit from server-side support (that you've mentioned) are a bad idea anyway.

    --
    Don't thank God, thank a doctor!
  141. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    Whats going to happen when it isn't there if you need it? Or that specific revision of it?

    Then I'll go to a different server, where I've also got them backed up. Or I'll notice that the file is gone (by auto-checking for it) before I have a catastrophic failure.

    Either way, I'm better off than with no backup, unless people are constantly deleting every single file.

    Well, fist of all, I wouldn't be under any illusion that any security was there at all.

    Erm, crypto is pretty good these days.

    With all that being said, no, I wouldn't trust you because I know how the security of FTP works.

    Assume for the moment that I'm using SFTP. Would you trust me then, any more than if I was using normal FTP?

    And yes, I would pay someone for a more secure backup that I could trust. Even if that backup person is me with a collocation somewhere.

    Unless that colo is, say, in the apartment of someone I trust implicitly, I don't really see how it improves things.

    A brute force attack on a AES-256 bit key spread out over a 1.5 million node bot net [informationweek.com] could get lucky a couple of times.

    Could it really? I don't actually know the mathematics on this.

    I do know that it would likely have no chance against, say, 4096-bit RSA.

    Now, generally, RSA isn't used to actually store the encrypted document -- that'd be AES. My point is, barring huge advances in quantum cryptography, I can probably trust that my data is safe. Even if a 1.5 million node bot net could compromise it, how long would it take? It'd be a hell of an expensive attack (considering that botnet could be used to generate revenue), which means I'd have to really have something of value, and they'd have to know.

    --
    Don't thank God, thank a doctor!
  142. Re:A slight oxymoron here. by sumdumass · · Score: 1

    Then I'll go to a different server, where I've also got them backed up. Or I'll notice that the file is gone (by auto-checking for it) before I have a catastrophic failure.

    Either way, I'm better off than with no backup, unless people are constantly deleting every single file.

    Lol.. If your going to pay for insecure redundancy, why not consolidate the expense and use a secure solution from the start? Outside of doing something to look busy, I don't understand why this is even a question.

    rm, crypto is pretty good these days.

    Your missing the point, FTP isn't secure. You transmit the user name and passwords in plain text. Part of a security model is control over access. And even though crypto is pretty good, it isn't fool proof nor it is impossible to break. Unlikely is a good term but impossible, no.

    Assume for the moment that I'm using SFTP. Would you trust me then, any more than if I was using normal FTP?

    After checking your credentials, making sure you as well as your server is in the US and under the US's jurisdiction, yes, I probably would. I'm not against a remote backup, I'm against thinking an insecure implementation of something requiring security is anything but insecure.

    Unless that colo is, say, in the apartment of someone I trust implicitly, I don't really see how it improves things.

    Well, there are some things that you have to trust that ethic laws and plain old laws will stop someone from doing something. I would make sure the colo is in the same legal jurisdiction as I am. Currently this is the US, If i was in the EU pr any other country, it would be to. In any colo, there will be a limited number of people with physical access and I can configure the machines to accept secure communications like SFTP. In a trusted apartment might be a good solution too as long as you can be garenteed reasonable access in cases of emergencies. Even if you get drunk and screw your friends wife and he hates you know.

    Could it really? I don't actually know the mathematics on this.

    Going through all the possible keys, it would take more time then "we" have on this world. But dividing the keys into segments equally across 1.5 million computers means that we are guessing in the middle of the middle of a middle of the possible answers multiple times. To illustrate this, imagine we had a 5 digit key with 10 possible numerical characters. That would be something like 10^5 or 1,000,000 possible answers. Now, if we divide that space between 10 computers, we would have every computer looking for 1,111 answers each. Lets just say our key is 45698. The first computer would be looking at 00000 through 11111, the seconds 11112-22223, third 22224-33335, fourth 33336-44447, fifth 44448-55559, sixth 55560 and I'll stop there because we already reached our key number. Now, if the computers can do one check per second, it would take 1,250 seconds instead of the 1,1111 seconds. That is something like 21 minutes to find a key compared to the 185 minutes to run through the possibilities. Of course this doesn't mean a key will be found with with larger keys, but it takes the infinite number of possibilities and breaks it down by a factor and then relies on luck that each key wouldn't be at the very end of the range of possible answers. AES 256 is something like 10^(76) possible answers which is huge. But by breaking down the possibilities, you have a better chance of getting lucky.

    I do know that it would likely have no chance against, say, 4096-bit RSA.

    No chance requires a level of luck that to not be present. You see, as I pointed out before, the key isn't always going to be the absolute largest possible answer and when you divide the pool down to the number of nodes, you could end up with it bei

  143. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 2, Informative

    Lol.. If your going to pay for insecure redundancy, why not consolidate the expense and use a secure solution from the start?

    That's assuming a "secure solution" exists. I think I adequately proved that such a "secure solution" is at least as impractical -- it pretty much involves a machine that you've configured running in the apartment of someone you trust not to let it be physically tampered with.

    Your missing the point, FTP isn't secure. You transmit the user name and passwords in plain text.

    Yeah, I got that. So what?

    And even though crypto is pretty good, it isn't fool proof nor it is impossible to break.

    Fine then -- so suppose I use your "secure solution" from the start, and I'm using rsync over ssh to a machine in my friend's apartment.

    What's to stop them from cracking the SSH?

    After checking your credentials, making sure you as well as your server is in the US and under the US's jurisdiction, yes, I probably would. I'm not against a remote backup,

    Neither am I.

    Suppose for a moment that you wouldn't. Does encrypting the files start to make sense?

    If you're already encrypting the files, SFTP doesn't buy you a lot over FTP.

    Well, there are some things that you have to trust that ethic laws and plain old laws will stop someone from doing something.

    Unless my files are encrypted. Then I don't actually have to trust "ethic laws" or "plain old laws" -- short of being myself kidnapped and waterboarded, I'm safe.

    AES 256 is something like 10^(76) possible answers which is huge. But by breaking down the possibilities, you have a better chance of getting lucky.

    Right. But let's do the math. Assume a million computers:

    10^76 / 10^6 = 10^70.

    Is it really that much more likely that you will get lucky with 10^70 possibilities than with 10^76?

    when you divide the pool down to the number of nodes, you could end up with it being within the first day of calculation.

    Right. Still isn't going to happen.

    See, Quantum Physics also predicts that it's entirely possible that every molecule in your body could simultaneously jump a foot to the right. It's just so ridiculously improbable that, in fact, no one has ever seen it happen -- and no one ever will.

    Let's assume, for the moment, that each compromised machine has a dual-core 2 ghz chip -- likely far less on most, but let's just assume. Assume 1.5 million of them. Assume that it takes only one cycle to attempt one key -- it doesn't, but pretend it does. And assume that threading is perfect -- you can keep both cores warm -- you can't, but pretend you can.

    Note that all of these allowances are in your favor.

    So, that's 2 ghz = 2 billion operations, times 2 cores per machine, times 1.5 million machines. By my count, that's 6 quadrillion tests per second. That's a lot, right?

    Let me give you some more numbers: 60 seconds per minute, 60 minutes per hour, 24 hours per day, 365 days per year. So, a little over 31.5 million seconds in a year.

    It will take 52849653306274315810851830343929408752938685099409408 years to search that keyspace.

    That also means that the probability of a hit in the first 100 years, assuming that the key could be anywhere in the keyspace, is approximately 0.00000000000000000000000000000000000000000000000000189216 -- percent.

    Adjusting for Moore's Law, and assuming that we'll have 2^(2*50) = 2^100 times more power by then -- and then, to make the math simpler, assuming we have that kind of power from now until then -- it's still about 0.0000000000000000000023986 -- again, that's a percentage.

    I keep trying to make your odds better, and I still can't get anything remotely realistic to suggest that even if a botnet were devoted full-time to cracking my personal backup, that there's even a reasona

    --
    Don't thank God, thank a doctor!
  144. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    Well, I suppose that should be:

    Winning the lottery, and then getting killed by lightning...

    --
    Don't thank God, thank a doctor!
  145. Re:A slight oxymoron here. by sumdumass · · Score: 0

    That's assuming a "secure solution" exists. I think I adequately proved that such a "secure solution" is at least as impractical -- it pretty much involves a machine that you've configured running in the apartment of someone you trust not to let it be physically tampered with.

    As I said before, there probably isn't any 100% secure solution. What you do is make something unlikely or improbable. So using FTP verses SFTP would be like walking around all day mumbling the combination to your locker and expecting no one to attempted to get it. It's something you just don't want to do. Attempting to hide behind some illusion of security is like putting yur hands over your eyes and thinking if you can't see them, they can't see you. It doesn't work that way BTW.

    Yeah, I got that. So what?

    Lol.. remind me to never use you for anything that is sensitive. The so what is that if it is that important that someone needs to use security, then regular FTP is completely inadequate. I'm not sure why you want to argue that braodcasting a user name and password to a server storing the information is in the least but secure.

    Fine then -- so suppose I use your "secure solution" from the start, and I'm using rsync over ssh to a machine in my friend's apartment.

    What's to stop them from cracking the SSH?

    You do understand the difference between giving someone something and making them work for it right? Offer $100 to the first person who shows up at your door and then offer another $100 for 10 hours of light to medium work. See how many show up and which offer gets more given the same advertising. First, there is no guarantee that someone can crack the SSH. Second, it requires a skill set a little more in depth then running a sniffer program. By running SSH, you have effectivly excluded a good portion of potential attackers. It's like leaving your car unlocked and the windows down. Locks only keep honest people out but without a lock, a lot of honest people can become dishonest really quick.

    Neither am I.

    Suppose for a moment that you wouldn't. Does encrypting the files start to make sense?

    If you're already encrypting the files, SFTP doesn't buy you a lot over FTP.

    If I store something important that needs to be secure, it isn't going to be on an insecure server. Period, end of story. I'm not going to even mess with FTP or anything because I want it to be there when I need it and I don't want something discovered by a Romanian, Chinese, or Russian hacker that gets around any encryption out there to make my illusion of security inadequate. Encrypting the file from the start makes sense as part of a solution but it can't be all of it. We have encrypted codings that get broke every year for fun and profit. How well have you don't your job at securing some backup if it isn't there when you need it or through either some hole discovered or getting lucky on brute forcing a key, anyone can open and view it just because you used FTP which broadcasted your username and password effectivly allowing someone easy access if they are sniffing either side of the connection? The answer to that is not very well.

    10^76 / 10^6 = 10^70.

    Is it really that much more likely that you will get lucky with 10^70 possibilities than with 10^76?

    Actually it is. If you have to rely on stumbling across the key, you are 1.5 million times more likely to get the right key on the first try. It increased with ever subsequent attempt. Sure, there remains a large set of possibilities but not all keys will be the very last one you try. The example I gave showed this and it showed how using multiple computers can take an extremely long time and cut it down quite a bit. The problem is that you simply do not know how long it will take to discover the ke

  146. Re:A slight oxymoron here. by SanityInAnarchy · · Score: 1

    So using FTP verses SFTP would be like walking around all day mumbling the combination to your locker and expecting no one to attempted to get it.

    If, when they do, they find a locked safe, I'm really not all that worried. In fact, I'm probably more secure than the locker next to me, who relies entirely on the locker itself, and the lock.

    I'm not sure why you want to argue that braodcasting a user name and password to a server storing the information is in the least but secure.

    Because, as I've demonstrated above, my username and password to that site don't have to be secure.

    First, there is no guarantee that someone can crack the SSH.

    There is no guarantee that someone can crack the files.

    Second, it requires a skill set a little more in depth then running a sniffer program.

    So does cracking AES256-encrypted files.

    By running SSH, you have effectivly excluded a good portion of potential attackers.

    By encrypting my files, I think I'd exclude the same portion.

    So, in summary, encrypting my files is no worse than using SSH with unencrypted files -- and probably a bit better.

    If I store something important that needs to be secure, it isn't going to be on an insecure server. Period, end of story.

    In other words, "I read your argument, and couldn't find anything wrong with it, except the conclusion."

    I don't want something discovered by a Romanian, Chinese, or Russian hacker that gets around any encryption out there...

    Hey, here's a tinfoil hat. It protects you from aliens and their brain scanners.

    You know what else doesn't exist? Romanian, Chinese, or Russian hackers who can get around other encryption.

    We have encrypted codings that get broke every year for fun and profit.

    With what algorithm? Single DES?

    anyone can open and view it just because you used FTP which broadcasted your username and password effectivly allowing someone easy access if they are sniffing either side of the connection?

    Whoops, looks like you still haven't figured out about SSH -- which broadcasts the contents of your files to everyone. It just happens to encrypt them first.

    If you have to rely on stumbling across the key, you are 1.5 million times more likely to get the right key on the first try.

    Correct. 1.5 million times the probability that every atom in your body will jump a foot to the right is still a stupidly small number.

    The example I gave...

    You mean the one I tore to pieces?

    I don't need to try all possible keys.

    You're right. You've also failed to read why this doesn't matter:

    the probability of a hit in the first 100 years, assuming that the key could be anywhere in the keyspace, is approximately 0.00000000000000000000000000000000000000000000000000189216 -- percent.

    No, you're not trying the entire keyspace. The point is that the probability that the key is within the area that you've tried in 100 years is still ridiculously, absurdly, impossibly small.

    The math is nothing but an illusion.

    Actually, math is hard fact -- the only hard fact.

    I'm not sure more likely is the question that should be asked.

    Actually, yes, it is, and that's the question you seem to be asking here:

    We all know that the web browser can be exploited to compromise a local system.... It is an entirely different story when a man in the middle can take information gained and then gain this access.

    Erm, how so?

    What, exactly, is stopping the man in the middle from be

    --
    Don't thank God, thank a doctor!
  147. If Windows then CoreFTP by maurert · · Score: 1

    CoreFTP www.coreftp.com has many of the features you're seeking but it's a Windows tool. If can compare timestamps to see if the client file is newer. It encrypts each individual file before sending it across the FTP link. The files are stored individually on the host. The only piece that I'm not sure it can do is be on a USB drive.

    And while not open source, the 'lite' version is free.