1. 如果该ecs 未绑定密钥对,可以通过常规的用户名密码登录
2. 如果该 ecs 绑定了密钥对,则需要通过私钥进行登录
3. 如果使用 比如 securityCRT 登录时报 “
A public key file has not been specified for this session
”,是因为 实例要求用 私钥登录,而你没有,此时可以右击 实例ip,选择 properties
然后 Connection ——>SSH2——>PublicKey——>Properties
找到 私钥存放的位置,打开私钥,点击ok即可
【注意】:使用私钥登录的前提是你生成了 私钥,并且与 esc 绑定了,而且也下载并保存好了 私钥