1 在客户端生成公钥和密钥ssh-keygen一直回车,在~/.ssh目录下会生成公钥和私钥文件2 对公钥进行转换使用命令ssh-keygen -f .ssh/id_rsa.pub -e -m pem | grep -v '\-\-\-\-' | base64 -d | xxd -p这个是为了将原本的openssh的公钥转为ssh2.0的公钥,因为貌似现在的Linux发行版默认都是openssh的
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号