LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2014, 07:09 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
SSHFS and Encryption


Hi all,

I have access to a computer remotely and I would prefer it if others didn't have access to my files.

What I would like to be able to do, is mount the folder using SSHFS and have them automatically unencrypted by my local computer.

Thanks
 
Old 01-25-2014, 07:49 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,601

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
I don't know what you mean by having them automatically unencrypted? When you use SSHFS then it would present you with an unencrypted directory as the server process is presenting it to you you're not seeing the raw disk.
Unless I've misunderstood something and SSHFS works differently to SFTP?
 
Old 01-25-2014, 07:55 AM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
I'll try explain what I mean better.

'Server' has documents encrypted. If you're logged onto the server computer, you cannot read the documents, even as root. They should be encrypted.

Client computer doesn't actually hold the documents, but can read and write to the documents which are encrypted. As the client holds the key to the encryption, it should be able to understand what they contain.
 
Old 01-25-2014, 08:00 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,601

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Ah interesting concept, I understand now. I'd not realised the "not mounted unencrypted on the server" part. That puts it a bit out of my depth.
 
Old 01-25-2014, 08:10 AM   #5
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
I think I've just answered my own question, in a very long method.

It uses encfs.
I need to mount the encrypted drive to folder A whereby I only see encrypted files. Use encfs to mount folder A to folder B, magically unencrypting it.

Not sure if there's a way to automagically make this all happen for me.
 
Old 01-26-2014, 03:09 AM   #6
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
I had this working yesturday evening, but I cannot get it all to work automatically.

I'm mounting the encrypted folder in ~/.secret through SSHFS
I'm then using encfs to mount ~/.secret in ~/Secret.

Thanks

Last edited by NotAComputerGuy; 01-26-2014 at 03:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sshfs without fuse? stateless Linux - Newbie 1 01-30-2013 02:44 PM
sshfs tunnelling dair-targ Linux - Networking 5 03-28-2010 10:33 AM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 06:46 AM
Anyone using Slackware and SSHFS? JockVSJock Slackware 6 12-20-2005 05:22 AM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM


All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration