今天發現git-shell下居然有sshd.exe, 嘗試了一下,居然起來了.在windiwos下起sshd也是如此簡單.
#先編輯C:\Program Files (x86)\Git\etc\ssh下的conf文件, 比如端口等, #然后生成服務器端秘鑰 #ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key #ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key #/usr/bin/sshd 就啟動了. 停止的時候必須kill, 不支持stop參數