Win7安转ssh(openssh和mobassh)

OpenSSH的安装配置:

下载地址:

http://sourceforge.net/projects/sshwindows/files/OpenSSH for Windows - Release/3.8p1-1 20040709 Build/setupssh381-20040709.zip/download

 

1. 默认安装

 

2. 补上cygintl-2.dll和cygwin1.dll

下载:http://samanthahalfon.net/resources/cygwin_includes.zip(这个网站打不开,之后换个地方试一试好了)

将它们复制到c:\Program Files (x86)\OpenSSH\bin目录下,如果提示覆盖,则覆盖之,不然进行下面操作,会提示

不能启动opensshd服务

OpenSSH Error 1067:The process terminated unexpectedly  系统出错,进程意外终止

 

3. 开始安装

cd "c:\Program Files (x86)\OpenSSH\bin"

mkgroup -l >> ..\etc\group                                   生成一个group

mkpasswd -l [-u <username>] >> ..\etc\passwd

比如:

mkpasswd -l -u mxio >> ..\etc\passwd                          这样就生成用户名mxio的passwd文件,

                                                              它调用的是系统用户名和密码

 

cd ..\..\etc                                                  给权限
..\bin\chown mxio *

..\bin\chmod 600 *

 

4. 启动opensshd服务                                           不出问题会提示启动成功

net start opensshd

 

5. 测试连接

ssh mxio@localhost


因为无法打开上面那个网站下载补丁,因此安装了mobassh


MobaSSH:

下载地址:http://mobassh.mobatek.net/download-home-edition.html

默认安装


测试本机连通性:

安装好之后打开客户端,在setting里勾选Enable Cron Service并重启

安装好一个ssh客户端,如putty或者SSH secure shell都可以,设置host name为127.0.0.1,user name为当前客户机登录用户名,如admin,其他默认


如果成功则显示:



   --------------------------------------------------------------------------
  |                             MobaSSH Home v1.60                           |
  |              (SSH server for Win32 based on Cygwin/OpenSSH)              |
  |                                                                          |
  |   Important                                                              |
  |   - Your computer drives are accessible through the /cygdrive directory  |
  |   - Network shares are accessible by typing //<remote_computer>          |
  |   - The Windows registry is browsable through the /registry path         |
  |                                                                          |
  |   Useful commands                                                        |
  |   - MobaHwInfo: detailed information about OS and hardware               |
  |   - MobaSwInfo: installed programs list                                  |
  |   - MobaTaskList, MobaKillTask: list/kill Windows tasks                  |
  |   - TCPCapture: Network packets and ports monitoring tool                |
  |   - scp, sftp: transfer files through the crypted ssh connexion          |
  |   - nedit, vim: text editors with syntax highlighting                    |
  |   - rsync, wget: sync local directories with network computers           |
  |                                                                          |
  |  This version is for personal use or evaluation purposes only            |
  |  For information please visit: http://mobassh.mobatek.net/versions.php   |
   --------------------------------------------------------------------------




[Fri Jan 13 - 10:32:32] ~
[admin.admin-PC] $ 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值