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 - 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: Slackware and Fedora
Posts: 234

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
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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: Slackware and Fedora
Posts: 234

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration