本文共 342 字,大约阅读时间需要 1 分钟。
window 使用PuTTYlianjie
Mac 使用SSH连接到Linux..打开终端窗口把 download 的key复制到~/.ssh里面cp ~/Downloads/test.pem ~/.ssh
使用 chmod 命令来确保您的私有密钥文件不是公开可见的,
用命令来限制对您的私有 SSH 密钥的权限chmod 400 ~/.ssh/test.pem
使用 SSH 连接到实例 到aws主机
ssh -i ~/.ssh/test.pem root@13.210.29.186
如果出现 port 22 time out是你的安全组入展设置没有SSH
添加一个类型在入站里就好转载于:https://blog.51cto.com/leoheng/2151453