下载地址:
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
比如:
mkpasswd -l -u mxio >> ..\etc\passwd 这样就生成用户名mxio的passwd文件,
它调用的是系统用户名和密码
cd ..\..\etc 给权限
..\bin\chown mxio *
4. 启动opensshd服务 不出问题会提示启动成功
net start opensshd
5. 测试连接
ssh mxio@localhost
因为无法打开上面那个网站下载补丁,因此安装了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 //
| - 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] $