- 时间:2022-11-04 22:21 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:windows 7架设OpenSSH服务器实践
最近有个想法就是在自己的电脑开个ssh服务,然后在远程如果需要在自己电脑上工作的时候就只需要ssh连接到自己的电脑然后用mstsc remote desktop连接到自己的电脑IP上就可以了。
1.下载OpenSSH:[url=http://www.1sucai.cn/softs/420320.html]http://www.1sucai.cn/softs/420320.html[/url]
2.安装,反正我是全都默认一路走下来,期间跳出个窗口说要编辑passwd文件的警告,OK继续搞下去。
3.切换到SSH安装目录下的bin
4.
[url=http://samanthahalfon.net/resources/cygwin_includes.zip]http://samanthahalfon.net/resources/cygwin_includes.zip[/url],将其中的两个dll解压覆盖bin目录下的老文件,如果提示权限不足,可能是因为cygrunsrv进程还是活着的,使用了这个dll文件,杀掉cygrunsrc进程完成替换
8.重启opensshd服务
net start opensshd
9.系统提示服务启动成功,我们可以用ssh命令或者putty来试验一下
ssh <username>@<ip_windows_machine>
# You will be prompted to accept the authenticity of host, type yes
# You will be prompted for a password
# Enter your windows password
10.试验成功,连接到自己的机器了
备注:
sshd -d -d -d执行不了,但是不影响启停openssh服务的进程。
sshd.exe – 系统错误
无法启动此程序,因为计算机中丢失 cygcrypto-0.9.7.dll。尝试重新安装该程序以解决此问题。
[img]http://files.jb51.net/file_images/article/201601/20160114214332.png[/img]