如何在Cygwin中安裝並配置SSH

2025-03-04 09:55:31 字數 2524 閱讀 8882

1樓:匿名使用者

選擇要安裝的程式,預設是不安裝openssh的,需要手動選擇,在net類別下選上openssh和openssl兩項4.等待**並完成擾伏安裝,之後,設定環境變數,把c:/歲局cygwin/bin;c:

cygwin/u.

2樓:網友

3. 選擇要安裝的程式,預設是不安裝openssh的,需要手動選擇,在net類別下選上openssh和openssl兩項。

4. 等待**並完成安裝,之後,設定環境變數,把 c:/cygwin/bin;c:/cygwin/usr/bin 加入到系統環境變數的path中。

5. 開啟cygwin,輸入 ssh-host-config

當詢問if privilege separation should be used 時輸入 no .

當詢問if sshd should be installed as a service 時輸入yes .

當詢問about the value of cygwin environment variable enter 時輸入 ntsec .

其餘詢問均輸入 no

6. 開啟 控制面板-》管理-》服務 啟動名為 cygwin sshd 的服務,亦可在cygwin中輸入友纖 cygrunsrv --start sshd 啟動sshd,輸入cygrunsrv --stop sshd停止sshd

7. 開啟cygwin,輸入 ssh-keygen,當詢問要filenames 和 pass phrases 的時候都氏告穗點回車,接受預設的值。

8. 命令結束後輸入 cd ~/ssh 轉到。ssh目錄,輸入 ls –l 應該包含兩個檔案:id_ 和 id_rsa

9. 在第8步的視窗(當前目錄在。ssh)殲卜中輸入 cat id_ >authorized_keys

10. 輸入 ssh localhost 啟動ssh

3樓:斜劉海雙馬尾

3. 選擇要安裝的程式,預設是辯局不安裝openssh的,需要手動選擇,賀中在net類別下選上openssh和openssl兩項。

4. 等待**並完成安裝,之後,設定環境變數,把 c:/cygwin/bin;c:/cygwin/usr/bin 加入到系統環境變數的攜拍讓path中。

5. 開啟cygwin,輸入 ssh-host-config

當詢問if privilege separation should be used 時輸入 no .

當詢問if sshd should be installed as a service 時輸入yes .

當詢問about the value of cygwin environment variable enter 時輸入 ntsec .

其餘詢問均輸入 no

6. 開啟 控制面板-》管理-》服務 啟動名為 cygwin sshd 的服務,亦可在cygwin中輸入 cygrunsrv --start sshd 啟動sshd,輸入cygrunsrv --stop sshd停止sshd

7. 開啟cygwin,輸入 ssh-keygen,當詢問要filenames 和 pass phrases 的時候都點回車,接受預設的值。

8. 命令結束後輸入 cd ~/ssh 轉到。ssh目錄,輸入 ls –l 應該包含兩個檔案:id_ 和 id_rsa

9. 在第8步的視窗(當前目錄在。ssh)中輸入 cat id_ >authorized_keys

10. 輸入 ssh localhost 啟動ssh

4樓:網友

3. 選擇要安裝的程式蘆彎哪,預設是不安裝openssh的,需要手動選擇,在net類別下選上openssh和openssl兩項。

4. 等待**並完成安裝,之後,設定環境變數,把 c:/cygwin/bin;c:/cygwin/usr/bin 加入到系統環境變數的path中。

5. 開啟cygwin,輸入 ssh-host-config

當詢問if privilege separation should be used 時輸入 no .

當詢問if sshd should be installed as a service 時輸入yes .

當詢問about the value of cygwin environment variable enter 時輸入 ntsec .

其餘詢問均輸入 no

6. 開啟 控制面板-》管鬧橘理-》服務 啟動名為 cygwin sshd 的服務,亦可在cygwin中輸入 cygrunsrv --start sshd 啟動sshd,輸入cygrunsrv --stop sshd停止sshd

7. 開啟cygwin,輸入 ssh-keygen,當詢陪碼問要filenames 和 pass phrases 的時候都點回車,接受預設的值。

8. 命令結束後輸入 cd ~/ssh 轉到。ssh目錄,輸入 ls –l 應該包含兩個檔案:id_ 和 id_rsa

9. 在第8步的視窗(當前目錄在。ssh)中輸入 cat id_ >authorized_keys

10. 輸入 ssh localhost 啟動ssh

如何在Eclipse中配置Tomcat

開啟eclipse,單擊 window 選單,選擇下方版的 preferences 權 找到server下方的runtime environment,單擊右方的add按鈕 選擇已經成功安裝的tomcat版本,單擊next 設定tomcat的安裝目錄 設定完成後,單擊ok即可完成設定!如何在eclip...

如何在win7下安裝python及配置

安裝配置 如下 新增環境變數 path c python26 arcgis10.0 此步驟可實現在命令列下,不用進入 python 目錄即可執行 python.exe 注意對應 python 的版本,完成後執行 exe 即可完成安裝 安裝 pip 5.1 解壓pip 1.4.1.tar.gz 5.2...

如何在ubuntu下安裝,如何在UBUNTU下安裝FIREFOX

ubuntu預設更新,只會升級軟體至安全版本,而不會自動更新到新版本。比如ff,系統只會升級到3.0的最新版本 3.0.13,而不會升級到3.5.2。所以,按 煎餅601 說的做,增加ppa源即可。你直接apt get firefox不行麼。或者apt get update。全都更新了就 我的印象中...