windows用密钥连接linux
在Linux上执行:ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa_custom,则在root/.ssh中生成了私钥id_rsa_custom和公钥id_rsa_custom.pub,后将公钥内容添加到linux的 ~/.ssh/authorized_keys 文件中以启用密钥认证,即执行cat ~/.ssh/id_rsa_custom.pub >> ~/.ssh/authorized_keys,并赋予权限,即执行chmod 600 ~/.ssh/authorized_keys。然后下载私钥id_rsa_custom到windows,用工具配置即可。