經過SecureCRT鏈接AWS EC2 Linux

1.先複製你的x?.pem文件到一個linux系統下,並修改其權限爲600,。linux

   chmod 600 x?.pemubuntu


2.改寫密鑰格式爲 OpenSSH,命令 服務器

  ssh-keygen -p -f x?.pemssh


3.生成公密鑰 *.pub 文件 命令 ide

  ssh-keygen -e -f x?.pem > x?.pem.pubspa


4.設置 SecureCRT,協議選擇ssh2 ,主機名填寫 ip 地址或者 dns 服務器名,用戶名填寫 ec2-user  或者 root,ubuntu。在左邊樹中選擇SSH2,而後選擇右邊 authentication 中 publicKey , 點屬性, 在出來的對話框中 , 經過瀏覽 找到以前Linux下生成的 x?.pem.pub 文件. 注意 x?.pem.pub 和 ?x.pem 要在同一文件夾下。orm

相關文章
相關標籤/搜索