LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-29-2012, 12:27 AM   #1
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
How does one make a virtual ssh directory?


I need a place to put my recovered files (which is why I need a virtual directory.), but my desktop computer does not have as much space as my laptop. So I need a way to send over the files, so I can finish the recovery. Both computer run Slackware64, my laptop runs current and my desktop runs stable.

Whole story about the recovery:

I accidentally deleted a very important directory on my external hard drive, and my desktop does not have enough space on it to recover it. (Which is why I have the external hard drive, is because I do not have enough space on my desktops hard drive.) But my laptop does have enough space, though extundelete seg faults on it, everytime because of how the libraries are set up on it.
 
Old 08-29-2012, 12:41 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Debian, SL
Posts: 5,193

Rep: Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120Reputation: 1120
Hi,

sounds like you want to use sshfs. To mount a directory or partition from hostb on hosta while currently logged onto hosta you could do:

Code:
mkdir -p /path/to/somewhere/hostbdir
sshfs user@hostb:/path/to/some/dir/on/hostb /path/to/somewhere/hostbdir
Now any program can copy files to hostb while on hosta just by dropping files into /path/to/somewhere/hostbdir/

To unmount it you can do
Code:
fusermount -u /path/to/somewhere/hostbdir
Caveats: this requires fuse and sshfs on hosta (only sshd on hostb). I do not know what packages provide these on slackware. Also note that at least in Debian the user using sshfs needs to be in the fuse group.

HTH,

Evo2.
 
Old 08-29-2012, 01:29 AM   #3
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Original Poster
Rep: Reputation: 2
thank you, I knew what I was looking for, but google was not helping.

I tried googling the following terms:
virtual ssh directory on linux
and
virtual ssh directory

and nothing but websites talking about software for windows I should buy.
 
  


Reply

Tags
network, recovery, slackware64, ssh, virtual


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
Which is safer? Only ssh +scp for 2 users? Or ssh (1 user) + vsftpd (1 virtual user) bvz Linux - Security 2 09-18-2011 08:55 PM
ssh authorized keys from one directory to another directory did not worked tkmsr Linux - Software 4 10-25-2010 08:28 AM
virtual directory lipun4u Linux - Software 1 10-02-2008 01:53 AM
Can I Make make Believe Root Is a Different Directory? binarybob0001 Linux - General 5 11-20-2006 03:33 AM
virtual host going to different directory ekrumm Red Hat 3 08-20-2005 11:21 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration