最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

windows 7架設(shè)OpenSSH服務(wù)器實(shí)踐

 更新時(shí)間:2016年01月14日 21:44:15   投稿:mdxy-dxy  
這篇文章主要介紹了windows 7架設(shè)OpenSSH服務(wù)器實(shí)踐,需要的朋友可以參考下

最近有個(gè)想法就是在自己的電腦開(kāi)個(gè)ssh服務(wù),然后在遠(yuǎn)程如果需要在自己電腦上工作的時(shí)候就只需要ssh連接到自己的電腦然后用mstsc remote desktop連接到自己的電腦IP上就可以了。

1.下載OpenSSH:http://m.fzitv.net/softs/420320.html
2.安裝,反正我是全都默認(rèn)一路走下來(lái),期間跳出個(gè)窗口說(shuō)要編輯passwd文件的警告,OK繼續(xù)搞下去。
3.切換到SSH安裝目錄下的bin
4.

復(fù)制代碼 代碼如下:

# create the default groups
mkgroup -l >> ../etc/group
#create the default users
mkpasswd -l >> ../etc/passwd
# Note: for neither of the above commands did I bother with the domain version documented in the quickstart
# Now, if you look in ../etc/passwd, you will see entries (one per line) for all your Windows users.
# Start the server in debug mode
cd ../usr/sbin
sshd -d -d -d

5.出現(xiàn)如下提示

復(fù)制代碼 代碼如下:

debug1: sshd version OpenSSH_3.8.1p1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/etc/ssh_host_rsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_rsa_key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/etc/ssh_host_dsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_dsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

6.可以看出是配置文件的權(quán)限沒(méi)有配置好,于是chown chmod之

復(fù)制代碼 代碼如下:

cd ../../etc
../bin/chown <username> *
../bin/chmod 600 *

7.發(fā)現(xiàn)貌似cygwin的dll文件出了問(wèn)題,參考貼里面提供了更新的dll文件的鏈接cygintl-2和cygwin1.dll,地址是http://samanthahalfon.net/resources/cygwin_includes.zip,將其中的兩個(gè)dll解壓覆蓋bin目錄下的老文件,如果提示權(quán)限不足,可能是因?yàn)閏ygrunsrv進(jìn)程還是活著的,使用了這個(gè)dll文件,殺掉cygrunsrc進(jìn)程完成替換

8.重啟opensshd服務(wù)

net start opensshd

9.系統(tǒng)提示服務(wù)啟動(dòng)成功,我們可以用ssh命令或者putty來(lái)試驗(yàn)一下

復(fù)制代碼 代碼如下:

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.試驗(yàn)成功,連接到自己的機(jī)器了

備注:

sshd -d -d -d執(zhí)行不了,但是不影響啟停openssh服務(wù)的進(jìn)程。
sshd.exe – 系統(tǒng)錯(cuò)誤
無(wú)法啟動(dòng)此程序,因?yàn)橛?jì)算機(jī)中丟失 cygcrypto-0.9.7.dll。嘗試重新安裝該程序以解決此問(wèn)題。

您可能感興趣的文章:

相關(guān)文章

最新評(píng)論

府谷县| 启东市| 隆子县| 万宁市| 广丰县| 保德县| 平原县| 溧阳市| 秭归县| 芦山县| 开阳县| 体育| 保定市| 湖北省| 天全县| 南丹县| 宝鸡市| 泸西县| 绥中县| 鄂尔多斯市| 加查县| 吴旗县| 潮州市| 临朐县| 湖南省| 衢州市| 柏乡县| 宣威市| 通城县| 蛟河市| 手机| 江达县| 阳新县| 保德县| 遵义县| 广德县| 巴东县| 郓城县| 吴堡县| 淮安市| 桐梓县|