配置Cygwin支持无密码SSH登录

一、安装SSH ssh

默认的Cygwin没有安装ssh测试

因此从新运行http://www.cygwin.com/setup-x86_64.exe spa

在Select Packages的时候,在search输入sshserver

选择openssh:The OpenSSH server and client programs get

二、配置SSH服务(以管理员身份运行cygwin) io

执行:ssh-host-config cli

Should privilege separation be used? yes sed

Do you want to install sshd as a service? yes 配置

默认确认 service

Do you want to use a different name? no 

Create new privileged user account 'cyg_server'? yes 

输入密码 

启动SSH服务:cygrunsrv -S sshd 

三、生成SSH Key 

ssh-keygen -t rsa(密码为空,路径默认) 

cp .ssh/id_rsa.pub .ssh/authorized_keys 

四、登录测试 

ssh localhost

相关文章
相关标签/搜索