Home » Distros » Debian » Mount Remote Filesystem Via Ssh Protocol Using Sshfs And Fuse Fedoraredhatdebianubuntu Way

Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]


Imagine the following situation: you have to compile some Linux/Unix application or kernel module that requires kernel source present at your hard drive, say, in /usr/src/kernels/kernel-2.6.21-i386/ or elsewhere. But there is not enough disk space to copy these sources or install kernel-devel or linux-source packages (in Fedora/RedHat or Ubuntu/Debian distros respectively)… Sounds familiar? Believe me, sometimes it happens 🙂

As a solution you can mount the directory of some remote PC that contains needed kernel source. It can be done via several protocols like smb, ftp etc. In this article we will mount remote directory using ssh protocol that is one the most popular for remote and secure access to Linux boxes over the network.

Below are the steps which should be taken to get the ball rolling. We need two packages: sshfs and fuse-utils.

ssh1. Install necessary packages:

a. Ubuntu/Debian:

sudo aptitude install fuse-utils sshfs

b. Fedora/Centos/RedHat:

yum install fuse-sshfs fuse fuse-libs

c. Other Linux: download and compile sshfs/fuse from sources

2. Check that kernel module fuse is loaded:

lsmod | grep fuse

There should be the line containing “fuse” in the output (of not try modprobe fuse).

3. Mount remote filesystem using something like this (two commands):

mkdir -p /mnt/sshfs/
sshfs remote-user@remote-machine:/some/directory /mnt/sshfs

where remote-user is the username allowed to login remote-machine via ssh protocol. It will ask you to type the password so just type it and press return 🙂

4. That’s it. Good luck!

Photo of author
My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

4 thoughts on “Mount remote filesystem via ssh protocol using sshfs and fuse [Fedora/RedHat/Debian/Ubuntu way]”

  1. may i know about the FUSE package and SSHFS compilation and please include the features of FUSE package and software needed (if any) to
    configure FUSE.
    please give feedback as soon as possible,
    thank you

  2. Hi there, just wanted to say, I liked this blog post. It was helpful. Keep on posting!

    Hello, I just wanted to mention, I disagree. Your blog doesn’t make any sense.

    Hello, how’s it going? Just shared this post with a colleague, we had a good laugh.

    Incredible points. Sound arguments. Keep up the great spirit.

    This text is invaluable. When can I find out more?

    Highly descriptive blog, I liked that a lot. Will there be a part 2?

    Ridiculous story there. What happened after? Good luck!

    Can you tell us more about this? I’d want to find out some additional information.

    Very nice article, totally what I needed.

    Hello, I read your new stuff regularly. Your story-telling style is witty, keep up the good work!

    Hello to every one, it’s genuinely a pleasant for me to go to see this website, it contains helpful Information.

    I am in fact glad to glance at this webpage posts which includes plenty of helpful facts, thanks for providing these data.

    This video post is truly fantastic, the noise quality and the picture quality of this video post is really amazing.

    Hi there to every body, it’s my first go to see of this blog; this website consists of remarkable and genuinely good material in favor of visitors.

    Hurrah, that’s what I was exploring for, what a data! existing here at this webpage, thanks admin of this site.

    Hi, always i used to check website posts here early in the dawn, because i enjoy to gain knowledge of more and more.

    Hello to every one, as I am genuinely eager of reading this blog’s post to be updated on a regular basis. It consists of good data.

    I all the time emailed this website post page to all my contacts, since if like to read it then my links will too.

    Can you please send by e-mail me the code for this script or please enlighten me in detail regarding this script?

    Your method of telling everything in this paragraph is really nice, every one can easily understand it, Thanks a lot.

    Fine way of describing, and pleasant post to take information regarding my presentation topic, which i am going to deliver in institution of higher education.

    Hi there, I would like to subscribe for this webpage to take latest updates, so where can i do it please help out.

    Hi there, after reading this amazing article i am also cheerful to share my familiarity here with friends.

    Excellent, what a webpage it is! This website gives helpful facts to us, keep it up.

    Hello all, here every person is sharing these kinds of experience, so it’s nice to read this weblog, and I used to pay a visit this web site everyday.

    What a funny blog! I actually enjoyed watching this humorous video with my family as well as together with my mates.

    Graphics are genuinely fastidious source of education instead of text, its my experience, what would you say?

    Hi, its nice paragraph about media print, we all know media is a fantastic source of facts.

    Hi there, this weekend is good in favor of me, since this occasion i am reading this impressive informative post here at my residence.

    This is my first time pay a quick visit at here and i am really happy to read all at single place.

    Fastidious response in return of this question with solid arguments and describing everything regarding that.

    I pay a visit day-to-day a few web sites and sites to read content, except this web site offers feature based writing.

    Certainly high resolution film quality consists of much memory, that’s why it presents superior quality.

    If you are going to watch comic videos online then I suggest you to visit this website, it contains in fact therefore comic not only movies but also other information.

    I know this site offers quality based content and additional stuff, is there any other web page which gives these kinds of information in quality?

    Hi there mates, its wonderful piece of writing regarding educationand entirely explained, keep it up all the time.

    Downloading data from this web site is as easy |as clicking the mouse rather than other blogs which transfer me here and there on the web pages.

    Hello everybody, I am sure you will be enjoying here by watching these comical movies.

    I constantly spent my half an hour to read this web site’s posts every day along with a cup of coffee.

    Wow! Finally I got a web site from where I know how to actually take helpful data regarding my study and knowledge.

    Hi there, everything is going perfectly here and ofcourse every one is sharing information, that’s in fact excellent, keep up writing.

    If you desire to increase your know-how just keep visiting this site and be updated with the newest gossip posted here.

    What’s up to every one, the contents existing at this site are truly awesome for people experience, well, keep up the good work fellows.

    No one can refuse from the quality of this video posted at this website, nice work, keep it all the time.

    No matter if some one searches for his necessary thing, so he/she wishes to be available that in detail, thus that thing is maintained over here.

    For the reason that the admin of this web page is working, no question very quickly it will be famous, due to its quality contents.

    Quality articles or reviews is the key to interest the users to go to see the website, that’s what this web page is providing.

    Hello everyone, it’s my first visit at this web page, and paragraph is really fruitful in favor of me, keep up posting these types of articles or reviews.

    Wow, what a video it is! Actually fastidious feature video, the lesson given in this video is really informative.

    If you are going for finest contents like I do, only go to see this web page everyday for the reason that it presents quality contents, thanks

    It’s amazing designed for me to have a web page, which is good in favor of my know-how. thanks admin

    I visited various web sites except the audio quality for audio songs current at this web site is actually marvelous.

    I’m gone to convey my little brother, that he should also visit this blog on regular basis to take updated from most recent news.

    Thankfulness to my father who informed me regarding this blog, this webpage is really remarkable.

    What’s up Dear, are you truly visiting this website regularly, if so after that you will definitely get fastidious know-how.

    I am John, how are you everybody? This paragraph posted at this web page is actually fastidious.

    Hello it’s me Fiona, I am also visiting this web page on a regular basis, this site is in fact fastidious and the viewers are in fact sharing pleasant thoughts.

    Actually when someone doesn’t be aware of after that its up to other visitors that they will help, so here it occurs.

    At this time I am ready to do my breakfast, once having my breakfast coming yet again to read additional news.

    Wow, this piece of writing is fastidious, my sister is analyzing such things, therefore I am going to tell her.

    These are genuinely great ideas in concerning blogging. You have touched some nice points here. Any way keep up wrinting.

    Asking questions are genuinely good thing if you are not understanding anything fully, except this post offers good understanding yet.

    That’s genuinely a nice video pointed out in this article concerning how to write a post, thus i got clear idea from here.

    This post presents clear idea in favor of the new viewers of blogging, that in fact how to do blogging.

    This article concerning SEO provides clear picture in favor of new SEO visitors that how to do SEO, therefore keep it up. Nice job

    Thanks in favor of sharing such a fastidious idea, article is nice, thats why i have read it entirely

    If some one wants expert view on the topic of blogging after that i propose him/her to pay a visit this web site, Keep up the nice work.

    Very quickly this web site will be famous amid all blog users, due to it’s good posts

    Every weekend i used to visit this website, for the reason that i wish for enjoyment, since this this site conations genuinely good funny data too.

    It’s not my first time to visit this website, i am browsing this website dailly and take nice information from here daily.

    Hurrah, what a quality it is! For the reason that mostly YouTube video clips have no nice feature, except this is in fact a nice quality video.

    Hi to all, the YouTube video that is posted at at this place has truly fastidious quality along with fastidious audio quality

    Amazing video, in fact a nice quality, this YouTube video touched me a lot in terms of quality.

    Its good comic YouTube video, I every time go to go to see YouTube site designed for comical videos, for the reason that there is much more information available.

    In favor of my learning purposes, I always used to get the video lectures from YouTube, as it is straightforward to fan-out from there.

    Hahahaha, what a comical this YouTube film is! I am still laughing, thanks to admin of this site who had posted at this web site.

    Such are truly awesome YouTube movies, its my good luck to visit this website and finding such cool YouTube video clips.

    Remarkable YouTube videos posted at this web site, I am going to subscribe for on a regular basis updates, as I don’t would like to miss this series.

    It’s my first go to see to this web site, and I am truly astonished to see such a fastidious quality YouTube video posted at this place.

    When I saw this website having remarkable quality YouTube movies, I decided to watch out these all videos.

    Hahahahahahaha, this politics related YouTube video is truly so comical, I liked it. Thanks in favor of sharing this.

    Hi there everyone, I know YouTube video carries less bytes of memory due to that its quality is poor, but this YouTube video has wonderful picture features.

    My grand father all the time used to watch YouTube funny video lessons, hehehehehe, because he desires to be delighted forever.

    YouTube is world’s leading video sharing site, no one can defeat it. Every one add video tutorials at YouTube afterward obtain embed code and post anywhere.

    Its absolutely brilliant YouTube video in terms of quality, actually good, its quality is truly appreciable.

    This website offers fastidious quality YouTube videos; I always get the dance contest show videos from this site.

    What a nice YouTube video it is! Awesome, I loved it, and I am sharing this YouTube video with all my friends.

    Sharing some thing is superior than keeping up-to our self, thus the YouTube video that is posted at this place I am going to share by my relatives and colleagues.

    As the YouTube movies are posted here same like I also embed YouTube video code at my own website, because it is trouble-free to get embedded code.

    Now YouTube movies quality is more better and enhanced, therefore that’s the cause that I am watching this video at at this place.

    These all YouTube gaming video lessons are truly in fastidious quality, I watched out all these along with my mates.

    I and my colleagues watch the soccer game clips at YouTube all the time, since they have in fastidious quality.

    In my house when I get bored, after that I just ON my PC and open YouTube web page to watch the YouTube video tutorials.

    Hi there, it’s understandable post along with this YouTube video; I can’t think that one can not understand this simple paragraph having with video demonstration.

    This paragraph on the topic of how to embed a YouTube video code is genuinely helpful in favor of new web people. Nice employment, keep it up.

    In YouTube video embed code you can also give parameters in accordance to your wish like width, height or even border colors.

    YouTube videos are famous in whole world, since it is the leading video sharing website, and I turn out to be too cheerful by watching YouTube movies.

    YouTube consists of not simply funny and humorous movies but also it contains educational related video tutorials.

    Hi there dear, are you enjoying with this comical YouTube video? Hmmm, that’s pleasant, I am as well watching this YouTube joke video at the moment.

    I am glad to see this you tube video at this website, thus now I am also going to add all my video tutorials at YouTube web page.

    Its my fortune to pay a visit at this weblog and find out my required piece of writing along with video demo, that’s YouTube video and its also in quality.

    Oh! Wow its really a humorous and jockey YouTube video posted at this place. thanks for sharing it.

    I got so bored at the moment afternoon, however while I watched this YouTube comic clip at this weblog I become fresh and happy too.

    What’s up my friends, how is everything? Here it is genuinely pleasant YouTube movies collection. i enjoyed a lot.

    My boss is as well eager of YouTube humorous movies, he also watch these even in organization hehehe..

    Hi there, can any body assist me how to download this video tutorial from this site, I have watched and listen it here but desire to down load it.

    This article is genuinely a nice one it helps new the web visitors, who are wishing in favor of blogging.

    When someone writes an post he/she keeps the idea of a user in his/her brain that how a user can know it. Thus that’s why this post is outstdanding. Thanks!

    each time i used to read smaller articles that also clear their motive, and that is also happening with this article which I am reading at this place.

    Paragraph writing is also a excitement, if you be acquainted with then you can write otherwise it is difficult to write.

    It’s amazing to go to see this site and reading the views of all colleagues concerning this piece of writing, while I am also eager of getting know-how.

    I got this website from my friend who shared with me regarding this web page and at the moment this time I am browsing this website and reading very informative articles or reviews here.

    I don’t waste my free time in watching video lessons however I be fond of to read content on net and obtain updated from hottest technologies.

    If some one wishes to be updated with latest technologies then he must be go to see this website and be up to date everyday.

    I think a visualized display can be better then just a trouble-free text, if stuff are defined in sketches one can effortlessly understand these.

    What a information of un-ambiguity and preserveness of valuable experience concerning unpredicted emotions.

    Hi, is it rite to just study from books not to pay a visit web for most recent updates, what you say guys?

    I read this post fully concerning the difference of latest and preceding technologies, it’s remarkable article.

    Why YouTube videos are shared everywhere? I think one reason is that these are straightforward to obtain embed script and paste that code anyplace you would like.

    This blog is containing a pleasant data of funny YouTube video clips, I liked it a lot.

    For hottest information you have to go to see internet and on internet I found this web page as a finest website for latest updates.

    It’s very trouble-free to find out any matter on web as compared to textbooks, as I fount this post at this site.

    You have to waste less time to explore your necessary matter on web, because nowadays the searching methods of search engines are nice. That’s why I fount this post at this place.

    If you are paying attention to learn Search engine optimization strategies then you have to read this piece of writing, I am sure you will obtain much more from this post on the topic of SEO.

    Actually it’s known as Search engine optimisation that when i search for this paragraph I found this web page at the top of all web sites in search engine.

    This paragraph regarding Search engine optimization is actually fastidious one, and the back links are really very useful to promote your website, its also known as Web optimization.

    Hi there, for Search engine optimisation real contents are actually required, if you simply copy and paste then you can not ranked in search engines.

    Ahaa, its good conversation concerning this piece of writing here at this webpage, I have read all that, so at this time me also commenting at this place.

    Wow, fastidious YouTube video on the topic of how to install virtual directory, I fully got it. Thanks keep it up.

    My family always say that I am wasting my time here at net, but I know I am getting familiarity everyday by reading such pleasant posts.

    Hi there i am kavin, its my first time to commenting anyplace, when i read this paragraph i thought i could also make comment due to this good post.

    It’s genuinely very difficult in this active life to listen news on Television, thus I only use internet for that purpose, and get the hottest information.

    I am sure this post has touched all the internet people, its really really good article on building up new web site.

    This paragraph will help the internet viewers for building up new weblog or even a blog from start to end.

    I am actually eager of reading content on the topic of making new web site, or even concerning Search engine optimisation.

    Remarkable! Its actually remarkable article, I have got much clear idea on the topic of from this post.

    What a lovely story! The story in this YouTube video that is posted at this time is actually a fastidious one with having fastidious picture feature.

    I have read so many articles or reviews on the topic of the blogger lovers except this paragraph is really a good post, keep it up.

    I always download a complete show in parts, that’s always present at YouTube, since my net connection is extremely slow and YouTube fulfils my wishes.

    I think the admin of this web site is genuinely working hard in favor of his web page, because here every stuff is quality based material.

    Wow! this cartoon type YouTube video I have seen when I was in primary level and at the present I am in school and seeing that once more at this place.

    If you wish for to obtain a good deal from this paragraph then you have to apply these techniques to your won website.

    The strategies pointed out in this article on the topic of to increase traffic at you own website are in fact fastidious, thanks for such good paragraph.

    If you apply these kinds of strategies for increasing traffic on your own blog, I am obviously you will see the difference in few days.

    There is also one more method to increase traffic in support of your web site that is link exchange, therefore you as well try it

    Link exchange is nothing else except it is only placing the other person’s blog link on your page at suitable place and other person will also do same in support of you.

    One other method in support of advertising your web site is posting comments on unique sites with your web site link.

    I have read much about free of charge blogging sites, except I have no clear idea regarding that, can any one inform me which one is most excellent in favor of free blogging and site-building?

    Hi, yes brother there are obviously several blogging blogs, but I recommend you to use Google’s without charge blogging services.

    Yup, you are correct Google is the best in support of blogging, Google’s weblog also come rapidly in search engines too.

    Hmmm, yup no uncertainty Google is best in favor of blogging however today word press is also pleasant as a blogging since its Search engine optimization is pleasant defined already.

    One more thing that I want to share at this place is that, whatever you are using free blogging service except if you don’t update your weblog on on a regular basis basis then it’s no more attraction.

    Yes, you are correct friend, daily updating web site is actually necessary for Search engine marketing. Pleasant discussion keeps it up.

    Hello colleagues, you are sharing your thoughts on the topic of website Search engine optimization, I am also new user of web, therefore I am also getting more from it. Thanks to the whole thing.

    It’s fantastic that you are getting thoughts from this post as well as from our discussion made here.

    I am truly eager of seeing comical video clips at youtube, and this video clip is truly so humorous, hehehhe.

    Hello dear, me plus my mother are as well watch comical movies except after I finished my homework

    Hi children, you all must watch comic movies, but keep in mind that first study then enjoyment ok.

    Hi I am from Australia, this time I am viewing this cooking related video at this web page, I am in fact glad and learning more from it. Thanks for sharing.

    Please add other video tutorials related to cooking if you have, since I desire to learn more and more about all recipes of cooking.

    Hi, thanks for all the users, I will add many more video tutorials in future days, admin

    Hello friend, what a quality is! For this YouTube video, I am really impressed, as I have never seen nice quality YouTube video earlier than,

    There are also so many video uploading blogs, and these also provide facility for distribution their videos, but I think YouTube is the best.

    Okay you are right, YouTube is best video sharing web site, as YouTube is a lightly no much streaming time rather than other websites.

    I am really grateful to the holder of this web page who has shared this fantastic article at here.

    Hi there to all, how is everything, I think every one is getting more from this website, and your views are pleasant in support of new viewers.

    This paragraph is related to website programming is actually pleasant for me because I am website programmer. Thanks for sharing keep it up.

    Wow! Its also nice piece of writing about JavaScript, I am really eager of learning JavaScript. thanks admin

    If any one wishes to be a successful blogger, then he/she must read this post, for the reason that it includes al} methods related to that.

    Hi there, yup this article is genuinely nice and I have learned lot of things from it about blogging. thanks.

    It’s an awesome article designed for all the web users; they will get benefit from it I am sure.

    I always used to study piece of writing in news papers but now as I am a user of net so from now I am using net for content, thanks to web.

    Hi colleagues, is there any other fastidious web site related to JavaScript posts, while this one is pleasant in support of PHP programming.

    Hi there, I also would like to share my thoughts here, when i don’t know even about a effortless thing related to PHP, I always go to explore that from internet.

    Wow! It’s a fastidious jQuery script; I was also looking for that, so i got it right now from at this place. Keep it up admin of this site.

    |When I want to place gallery or LightBox or yet a slider on my website I every time attempt to use jQuery script in favor of that.

    Genuinely programming is nothing however it’s a logic, if you take control on it then you are the master else nothing.

    I like to work on Personal home pages rather than .NET, though .NET provides the feature of drag and drop elements, but I love Personal home pages much.

    Yes you are right, genuinely PHP is a open source and its assist we can take free from any community or web site since it occurs at this place at this web site.

    What’s up to all, I am also genuinely keen of learning Personal home pages programming, but I am new one, I forever used to examine posts related to PHP programming.

    What a video it is! Actually awesome and fastidious quality, please upload more video tutorials having such fastidious quality. Thanks.

    Some viewers are keen to watch funny videos, but I like to watch terrible video clips on YouTube.

    Genuinely movie is the display of some one’s feelings; it provides the lesson to the people.

    Hello mates, pleasant post and fastidious arguments commented at this place, I am really enjoying by these.

    Okay this YouTube video is much better than last one, this one has nice picture feature as well as audio.

    In the present day I was so tired, and now this time I have got some relax by watching this comic YouTube video, thanks, keep it up.

    On each weekend, we all friends together used to watch film, as fun is also necessary in life.

    I am keen of learning Flash, is there any post associated to Flash, if yes, then please post it, thanks.

    All right I am also in look for of Flash tutorials, as I wish for to learn more about flash, therefore if you have please post it here.

    I also like Flash, but I am not a good designer to design a Flash, however I have computer software by witch a Flash is automatically produced and no extra to work.

    Hi there colleagues, I am again here, and reading this paragraph related to Search engine marketing, its also a nice article, therefore keep it up.

    Can any one let know me that is there any on the internet course for SEO, as I want to learn more concerning Search engine optimization.

    Hi every buddy, it’s a impressive entertaining at at this place viewing these funny YouTube video clips at here, pleasant data, thanks to admin of this site

    It is the happiest day of my life so far, when I am watching these} funny video clips here, because after whole day working I was so tired and now feeling sound.

    It’s going to be ending of mine day, but before ending I am reading this fantastic piece of writing to increase my know-how.

    Why people still use to read news papers when in this technological globe all is accessible on net?

    This post is fastidious and fruitful designed for all new Personal home pages related web programmers; they have to study it and perform the practice.

    Hello mates, how is the whole thing, and what you wish for to say on the topic of this article, in my view its really amazing in support of me.

    What’s up Jackson, if you are a new web user afterward you must pay a quick visit everyday this web page and read the updated articles at at this place.

    No problem, and further more if you would like update alerts from this site at that time you must subscribe for it, it will be a suitable for you Jackson. Have a good day!


Leave a Comment