阿里云ECS服务器密钥对pem文件使用secureCRT登录异常问题处理
2020-11-15
spring
阿里云ECS服务器密钥对pem文件使用secureCRT登录异常问题处理
密钥对pem文件非公钥文件,并不能直接在SecureCRT
客户端中直接使用,会报Unable to authenticate using any of the configured authentication methods.
错误。
1、将下载的pem文件放到linux
环境下,使用以下命令导出公钥
chmod 600 mixfate.pem
ssh-keygen -e -f mixfate.pem > mixfate.pem.pub
2、再将mixfate.pem.pub公钥导入secureCRT
Session Options -> Connection(SSH2) -> Authentication(PublicKey) -> Properties -> Use identity or certificate file,选中公钥文件即可。
若公钥被另外一个客户使用过不可用,可重新使用
ssh-keygen
导出新的公钥。
3、推荐使用tabby这个工具更加方便好用
其中包括上传、下载体检都不错,也不需要安装rz sz命令