- 在安裝cygwin時要選擇什麼。
cygrunsrv
openssh
vim
- 環境變數
在path 這個變數,最後加一個 c:\cygwin\bin
- 如何安裝 ssh
*千萬記住,請按右鍵「以管理者的身份執行」來跑 cygwin 的terminal。否則最後會以沒有足夠的權限失敗做結尾。
a.先開權限
chmod +r /etc/group
chmod +r /etc/passwd
chmod +rwx /var/
b.開始設定
輸入 ssh-host-config
Should privilege separation be used? (yes/no) yes
Do you want to install sshd as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ntsec] ntsec
Do you want to use a different name? (yes/no) no
Create new privileged user account 'cyg_server'? (yes/no) no
Do you want to proceed anyway? (yes/no) yes
cygrunsrv.exe -S sshd 來試一下是否啟動成功。
沒有留言:
張貼留言