LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2016, 12:39 AM   #1
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
SCP encrypted directory


I'm trying to copy a backup of my encrypted home directory to another machine using SCP. # scp -r remote@192.168.x:/home/*.* /local/home

the results are interesting; im wondering how to access these files on the local host since they seem to be encrypted in dirname, filename, and content. In short i can copy them, but once there how do i access them.

Remote host is Ubuntu, local machine is debian.

Any thoughts, advice ? ive googled & searched this forum; nothing hits the mark.
 
Old 05-12-2016, 09:45 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by danimalz View Post
I'm trying to copy a backup of my encrypted home directory to another machine using SCP. # scp -r remote@192.168.x:/home/*.* /local/home
I can't think of a way with scp off the top of my head. However, tar might work.

Code:
ssh remote@192.168.x.x '( cd /home/danimalz/; tar zcf - ./* )' | (cd /local/home/danimalz/; tar zxf - )
 
Old 05-12-2016, 11:06 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
The file based encryption you describe is typically eCryptfs. Here's a tutorial for Debian. See how far you get with that and post any issues.
 
  


Reply



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
[SOLVED] scp file and include directory info clstanton Linux - Newbie 5 10-08-2014 08:29 AM
SCP: No such file or directory...but its there!? Baix Linux - Newbie 20 07-28-2012 02:42 PM
How to recover my encrypted Home directory pazzport Linux - Desktop 7 05-14-2012 11:30 PM
Cannot mount unencrypted directory to encrypted home directory with fstab? Daravon Ubuntu 35 09-14-2010 03:50 AM
Directory name cause scp errors Roosta21 Linux - Software 7 11-23-2007 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:03 AM.

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
Open Source Consulting | Domain Registration