国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > Win服務(wù)器 > 正文

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

2024-09-10 00:04:01
字體:
供稿:網(wǎng)友

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

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

代碼如下:
# 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)如下提示

代碼如下:
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)限沒有配置好,于是chown chmod之

代碼如下:
cd ../../etc
../bin/chown <username> *
../bin/chmod 600 *

7.發(fā)現(xiàn)貌似cygwin的dll文件出了問題,參考貼里面提供了更新的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來試驗(yàn)一下

代碼如下:

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 甘肃省| 扬州市| 都兰县| 祁东县| 碌曲县| 蕉岭县| 彭山县| 武安市| 普宁市| 五家渠市| 普洱| 江山市| 余庆县| 丘北县| 墨玉县| 兴海县| 工布江达县| 乡宁县| 乌鲁木齐市| 右玉县| 洛川县| 沅江市| 民和| 义马市| 北京市| 仙居县| 东源县| 辛集市| 黄山市| 淮安市| 济阳县| 江永县| 会昌县| 凤凰县| 休宁县| 仁怀市| 陈巴尔虎旗| 六枝特区| 平江县| 渭南市| 武功县|