How to mount a remote filesystem in Ubuntu如何装入一个偏远的Ubuntu的文件

by Ken Murray on November 3, 2008 肯穆雷 二○○八年11月3日

Linux操作系统

I like to be able to access files on my desktop computer from my laptop while I’m on the road.我喜欢能够存取档案在我的台式电脑从我的笔记本电脑,而我的道路上。 Luckily Linux has this feature built in. In this tutorial I’ll be using the SSH protocol because it provides far more security than FTP.幸运的Linux有此功能内置在本教程我将使用SSH协议,因为它提供更多的安全比FTP服务器。 I strongly advise using SSH because it transmits user names, passwords, and all data through an encrypted tunnel whereas FTP is highly susceptible to third party snooping.我强烈建议使用SSH ,因为它传递用户名,密码,所有数据通过加密的FTP隧道,而极易受给第三方窃听。

This tutorial also applies to any Linux distribution using Gnome as the Desktop Manager.此教程也适用于任何Linux发行侏儒使用的桌面管理器。

  1. In the Gnome desktop, simply click the Places menu and choose Connect to Server…在GNOME桌面,只要按一下邻居菜单,并选择连接到服务器...

  2. click to enlarge点击放大

  3. By default the system wants you to use FTP.默认情况下,该系统希望您能使用FTP 。 The first thing you need to do is change the Service type to SSH .首先,你需要做的是改变服务类型的SSH
  4. My laptop’s /etc/hosts file has an entry for my home computer in it so I don’t have to try and remember it’s IP address.我的笔记本电脑的的/ etc /主机文件已进入我的家用电脑中,使我没有尝试,并记住它的IP地址。 In the Server field I entered the friendly name from my /etc/hosts. 服务器领域我走进方便的名字从我的/ etc /主机。 You could also type the fully qualified domain name or the IP address of the remote computer.您还可以输入完全合格的域名或IP地址的远程计算机。

    Leave the Port field blank.离开港口领域的空白。

    In the Folder field I chose to enter my home directory. 文件夹外地我选择进入我的家目录。 If this field is left blank you will be dumped into the root directory on the remote computer and have to navigate to your home directory manually.如果此字段留空你将倾入的根目录在远程计算机上,并浏览到您的主目录手动。

    In the User Name field I entered my user name on the remote computer. 用户名外地我走进我的用户名在远程计算机上。

    I also chose to check the Add Bookmark checkbox so the next time I connect to my home computer I don’t have to go through all of these steps again.我也选择了检查新增书签复选框,所以下一次我连接到我家里的电脑我没有经过所有这些步骤一次。

    Because I chose to add a bookmark for this connection, I also had to give it a name.由于我选择添加书签,这方面,我也给它一个名称。 In the Bookmark Name field I simple typed the same friendly name as in my /etc/hosts file.书签名称字段输入简单的我相同的友好名称在我的/ etc /主机文件。

    Now click Connect .现在, 单击连接。

  5. Since this is the first time I have connected to my home computer this way from my laptop, I was presented with the remote computer’s SSH Fingerprint so I could verify that I am in fact attempting to connect to the correct computer.由于这是我第一次连接到我家里的电脑这种方式从我的笔记本电脑,我提出了与远程计算机的SSH指纹 ,所以我可以确认,我其实尝试连接到正确的计算机。 Click Log In Anyway .点击登录反正

  6. click to enlarge点击放大

  7. Next I was prompted for my password for the remote computer.下一步,我提示我的密码的远程计算机。 I also chose to allow Gnome to remember this password for the duration of my current login session.我也选择了让侏儒要记住这个密码的时间我目前的登录会话。
  8. After authenticating successfully, up pops a window displaying the contents of my home directory on my home computer.验证成功后,弹出了一个窗口显示的内容,我的家目录我的家用电脑。 For all intents and purposes this filesystem now acts as if it were another local hard drive attached to my laptop.对于所有意图和目的现在这个文件的行为,就好像它是另一个本地硬盘驱动器连接到我的笔记本电脑。 You will also notice there is now an additional icon on the desktop called ’sftp on bromine’.你也将通知现在有更多的图标在桌面上所谓的'网友对溴' 。

  9. click to enlarge点击放大

  10. If you also chose to add a bookmark for this connection, you will be able to find it in the Bookmarks menu.如果你也选择添加书签,这方面,你将能够找到它的书签菜单。 This is very handy for the next time you want to connect to this remote computer.这是非常方便的下一次当您要连接到该远程计算机。

  11. click to enlarge点击放大

  12. Once you are finished using the remote filesystem, unmount it by right-clicking on its desktop icon and selecting Unmount Volume .一旦您使用完远程文件系统,它的卸载右键点击桌面图标,并选择卸载卷。

  13. click to enlarge点击放大

  14. The next time you choose to connect to this remote filesystem, assuming you chose to bookmark the connection, you can simply select it from its bookmark in the Places menu.下一次你选择连接到这个偏远的文件,假设你选择的书签连接,您可以选择它从书签菜单中的位置

  15. click to enlarge点击放大

  16. The above procedures are almost identical for connecting via FTP.上述程序是几乎相同的连接通过FTP 。 Only connect via FTP if you absolutely must and preferably only if both the remote computer and your laptop or workstation are on a secure internal network with no access from outside.只有通过FTP连接如果你必须绝对最好,只有两个远程计算机和便携式计算机或工作站上一个安全的内部网络,没有从外部进入。
Related Posts: 相关文章:
  • How to extract (or access) the contents of an .iso file in Windows如何提取(或接入)的内容。 iso文件在Windows
  • How to mount a remote file system as a local drive in OS X如何安装远程文件系统作为一个本地驱动器的OS X操作系统
  • How to disable Remote Assistance and Remote Desktop in Windows XP如何禁用远程协助和远程桌面在Windows XP
  • How to encrypt a USB thumb drive in Ubuntu如何加密USB拇指驱动器在Ubuntu的
  • How to automatically mount a Windows drive when OS X starts如何自动安装的Windows驱动器时, OS X的启动
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!获取简单的帮助教程就这样一个在您的电子邮件收件匣每一天-是免费的! Just enter your email address below:只要输入您的电子邮件地址如下:

    You can always opt out of this email subscription at any time.您可以随时退出这个邮件订阅在任何时候。


    Bookmark and Share 书签和共享

    { 0 comments… 0评论... add one now现在添加一个 }

    Leave a Comment发表您的评论

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些HTML标记和属性: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em> <i> <q cite=""> <strike>的<strong>