在windows上搭建一个SSH隧道Set up a Windows SSH tunnel in 10 minutes or less)
来源:互联网 发布:网络招商 编辑:程序博客网 时间:2024/05/01 13:37
Set up a Windows SSH tunnel in 10 minutes or less
Here are step-by-step instructions for setting up a quick and dirty SSH tunnel to another network. This gives you the ability to connect to any machine and port that the remote machine has access to. The process is so simple, it should take you less than 10 minutes.
Why would you want to do this? Well, it’s a pretty slick way to connect to a remote machine on a single port and have access to all of the network resources of that machine. Your connection acts like it’s originating from the server. As a test, I set it up on my development computer running Visual Studio. Visual Studio runs web projects in a special web server that is only accessible from that machine. Using SSH, I was able to make it accessible to anyone on my network using my computer as a gateway.
In this example, we’re going to be using two free pieces of software. On the server, we’re going to use a version of OpenSSH that uses a stripped down version of Cygwin to run on Windows. On the client, we’re going to use Putty.
The first step is to download and install both programs. Here are the links to the download pages for each product:
- Windows OpenSSH
- Putty
On your the server, where OpenSSH was installed, we need to run a couple of quick commands at the command line (go to start->run and type "cmd"):
- mkgroup -l >> ..\etc\group
- mkpasswd -l >> ..\etc\passwd
- net start opensshd
You’re now running an SSH server! Now we can configure the client (Putty).
Open up Putty. It doesn’t require installation, so you can simply double-click on the executable. In the tree on the left, navigate to Connection->SSH->Tunnels. We’re going to add a list of local ports that will be routed to machines that the server has access to. For example, if we want to access remote desktop on the remote machine, we can put a destination of 127.0.0.1, and a port of 3386. The source port is the port that we’ll connect to on our machine. Remember to click "Add" when adding a forwarded port.
You should end up with something like this. Now, go to the "Session" section in putty. Enter the host name of the server you want to SSH into. Then, select "SSH" as the connection type. Then press "Open". You’ll be prompted for a username and password, which should be an account on the server you’re connecting to.
The beauty of this is that you don’t have to set up the port list on the server, it’s all configured on the client. You can even let computers connect to your computer and have them be routed to the remote machine.
Hopefully that is enough information to get you started. I’m no SSH expert, but it was pretty easy to get set up when doing it this way.
- 在windows上搭建一个SSH隧道Set up a Windows SSH tunnel in 10 minutes or less)
- SSH Tunnel隧道
- Ubuntu与windows-ssh反向隧道
- 在Linux上建立ssh隧道
- SQLite In 5 Minutes Or Less
- 在Windows和Linux上连接SSH
- git在windows上配置ssh公钥
- 如何在Windows上建立ssh服务器
- 在windows上使用ssh,scp
- 关于对SSH隧道SSH Tunnel命令参数的理解
- ssh:Dig a multi-hop ssh tunnel
- 在ubuntu上通过SSH tunnel 安装软件
- windows下搭建SSH服务器
- windows 下搭建SSH服务器
- How to Set Up SSH Keys In Ubuntu
- Windows上SSH服务器配置
- ssh tunnel
- ssh tunnel
- bernate中间表配置其他字段(列) annotation不知道怎么配置~
- java reflect 由参数取得对应的类的方法函数
- linux top命令详解
- 使用HashMap输出的顺序
- Camera总结
- 在windows上搭建一个SSH隧道Set up a Windows SSH tunnel in 10 minutes or less)
- Java的Socket(一)
- H.264-AVC视频编码原理及实现(一)
- android中创建有自身特色的字符串
- Qt 程序启动画面QSplashScreen的使用
- OSGi代码权限与Java Security机制
- HashMap java.util.ConcurrentModificationException
- 火狐和IE的window.event对象详解
- template , for_each , fill