OpenBSD ssh vpn putty应用探索
发表于 : 2013-03-18 9:36
准备做最简单的走ssh的vpn tunnel
服务器是OpenBSD,客户端是Windows + putty + firefox
##之前acheng好像做过一个ssh的vpn销售帐号,下面问题请帮忙看看是否恰当。
OpenBSD系统
/etc/ssh/sshd_config
最后几行
match group vpn
PasswordAuthentication yes
ForceCommand passwd ##acheng兄,不知道这样是否恰当,这里的用途是仅允许用户更改密码,sftp是登录不了的,这样设置够了么?是否安全?
按常规方式添加新用户,加入vpn这个组,服务端就搞定了。
Windows那边,用putty.exe,操作如下
Creating an SSH Proxy Tunnel with PuTTY
http://blog.ashurex.com/2012/03/15/crea ... nel-putty/
Configuring PuTTY
1 Fire up the client and enter the hostname and port
2 Type in a title under Saved Sessions and press Save
3 On the left side, go to Connection->SSH->Tunnels
4 In Source Port enter 8080 (this can be configured to be whatever you want, just remember it)
5 Choose the Dynamic+ Auto radio button under Destination
6 Press Add, you should then see D8080 in the box above
7 Go back to Session on the left side and then press Save to save the changes
然后在Windows系统中putty登录这个特殊地址后,
在Firefox或其他浏览器中启动基于socket v5 的代理,Firefox上网环境就等于在OpenBSD那台vpn server在上网了。
服务器是OpenBSD,客户端是Windows + putty + firefox
##之前acheng好像做过一个ssh的vpn销售帐号,下面问题请帮忙看看是否恰当。
OpenBSD系统
/etc/ssh/sshd_config
最后几行
match group vpn
PasswordAuthentication yes
ForceCommand passwd ##acheng兄,不知道这样是否恰当,这里的用途是仅允许用户更改密码,sftp是登录不了的,这样设置够了么?是否安全?
按常规方式添加新用户,加入vpn这个组,服务端就搞定了。
Windows那边,用putty.exe,操作如下
Creating an SSH Proxy Tunnel with PuTTY
http://blog.ashurex.com/2012/03/15/crea ... nel-putty/
Configuring PuTTY
1 Fire up the client and enter the hostname and port
2 Type in a title under Saved Sessions and press Save
3 On the left side, go to Connection->SSH->Tunnels
4 In Source Port enter 8080 (this can be configured to be whatever you want, just remember it)
5 Choose the Dynamic+ Auto radio button under Destination
6 Press Add, you should then see D8080 in the box above
7 Go back to Session on the left side and then press Save to save the changes
然后在Windows系统中putty登录这个特殊地址后,
在Firefox或其他浏览器中启动基于socket v5 的代理,Firefox上网环境就等于在OpenBSD那台vpn server在上网了。