在 Ubuntu 上使用 SecureCRT 导入密钥(通常用于 SSH 公钥认证),一般有两种常见场景:
确保你已经有私钥文件,例如:
id_rsaid_ecdsaid_ed25519⚠️ 注意:
ssh-keygen -p -m PEM -f id_rsa
在 Ubuntu 上通常是:
securecrt
或通过应用菜单启动
id_rsa)✅ 这样 SecureCRT 就可以使用该密钥登录服务器
如果你是 在 SecureCRT 里生成密钥:
Tools → Create Public Key
SecureCRT 会生成:
.pub 或需要导出)如果格式不是 OpenSSH:
ssh-keygen -i -f securecrt_pub.key > id_rsa.pub
ssh-copy-id user@server
或手动追加:
cat id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
ssh-keygen -p -m PEM -f your_key
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_*
如果你愿意,可以告诉我:
我可以给你更精确的步骤。