前段时间在想,办公室一台电脑,家里一台电脑, 都在firewall后面,于是想如何互相远程:
通过网络查找,可行的方法有:
1 . 通过VPN服务器,(多数要花钱,不花钱的不安全:(
2. teamviewer
远程视频(支持linux与windows),但个人习惯喜欢直接console方便些。
3 hamachi +ssh
+ haguichi(可视化开源client,刚开始熟悉时需要,之后就可以完全用命令行操作!)
hamachi
可以说是提供虚拟的VPN,当你登录后,类似于QQ,创建加入到一个群中,群里面会显示其它成员的状态、IP。然后,会每台电脑提供一个虚拟的IP,登录后就可直接访问。
--->支持多种模式哦:点对点(速度快),relay,
server转发;
--------------
具体操作,给出链接:
http://www.techrepublic.com/blog/linux-and-open-source/use-hamachi-vpn-on-your-linux-clients/2232/#.
先COPY一份,防止链接失效:)
---------------------------==============STRART===============》
If you need to set up a VPN on your Linux machine, and you don‘t want to deal
with the hassle of configuring OpenVPN (or passing traffic through a router),
there is a solution. Jack Wallen has the details in this tip.
If you‘ve used Linux in a business environment, you know there are times when
you might need to host a VPN on that Linux machine in order to access said
machine from other locations. If you need such a service, you could go through
the steps of installing a tool like OpenVPN (which is, of course, an
outstanding open source VPN solution) or, you can do this the easy way and
install the Hamachi VPN GUI for a very easy VPN setup.
I want to demonstrate how to install Hamachi and Haguichi on a Ubuntu desktop
installation so you can see how easy it can be to add your Linux desktop to a
VPN.
What you need
There are two pieces to this puzzle:
- Logmein
Hamachi - Haguachi
There are a few different GUI options that you may come across for Linux:
Hamachi GUI and Haguichi. Hamachi GUI seems to be outdated and not terribly
reliable. Haguichi, on the other hand, is quite reliable. We‘ll install that
tool to use as a GUI front-end, but before you install that, you must install
Hamachi2.
Installation
First, download the Hamachi2 deb from the Logmein
download page. Once you have that downloaded, do the
following:
- Open up a terminal window.
- Change to the directory housing the newly downloaded .deb file.
- Issue the command
sudo dpkg -i logmein-hamachi_XXX_xxx.deb
(Where XXX is the release number and xxx is the architecture for your
hardware). NOTE: If your installation doesn‘t complete, you might need to open
up Synaptic to "fix" the broken packages. This is an easy way to catch all of
the dependencies. - Type your sudo password and hit Enter.
- Allow the installation to complete.
With that piece installed, you are ready to install the GUI. Instead of
downloading a .deb file, we are going to add the PPA for Haguichi to our system.
Once the PPA is added, Haguichi can be installed using apt-get. Here are the
steps:
- Open up a terminal.
- Issue the command
sudo add-apt-repository ppa:webupd8team/haguichi.
- Issue the command
sudo apt-get update.
- Issue the command
sudo
apt-get install haguichi.
I will say theHaguichi client does seem to be a bit more reliable than
Hamachi GUI.
Connect to, or create a VPN network
Now that you have everything installed, click Applications | Internet |
Haguichi. When the Haguichi window opens (at left), click Client | Join Network.
A new window will open where you can enter the credentials for the VPN you want
to join. You can also create a new network by clicking Client | Create Network.
You will have to enter a name and a password for that network. This should go
without saying, but make sure your password follows standard strong password
practices. Do NOT create a week password for a VPN network connection.
Once you are joined to a VPN network you can browse other machines on the
network by double-clicking the listed machine, which will open up a file browser
window for all available shares on that machine. NOTE: If the target machine has
no shares, you will not be able to browse the machine.
You can also change the nickname of the machine you are working on. This is
handy when the hostnames of the various machines on your network are similar. To
change the nickname click Client | Change Nickname and then enter the new
information.
Final thoughts
If you need to connect a Linux machine to an Hamachi VPN (or need to quickly
create a VPN network) you can‘t go wrong with Hamachi2 and either Hamachi GUI or
Haguichi. The setup time is fast, the tools are user-friendly, and it beats
having to walk through the more complex configuration of OpenVPN. The downside?
Although the source code of the Haugichi software is 100% open source, it does
rely on the Hamachi service which uses non-open source software. That‘s picking
at nits, but some open source users are purists.
---------==================COPY END==================