我正在嘗試爲我的Amazon EC2實例設置sftp唯一用戶。關於here的好教程。從AWS EC2複製公開密鑰Ubuntu實例 - 只設置sftp用戶
我有一點麻煩,在此步驟:
Using the AWS Management Console, generate a new key pair for the third-party user.
Using puttygen, import the new key (keyname.pem) and copy its public key.
On the server, create the .ssh directory for the new user:
sudo mkdir /home/newusername/.ssh
Paste the public key into /home/newusername/.ssh/authorized_keys.
創建在AWS管理控制檯,沒有問題的關鍵。它允許我下載並保存私鑰。我正在理解下一步意味着從我的EC2實例將密鑰導入到本地計算機,複製公鑰,然後將其粘貼到指定文件中。
問題是,如何使用PuttyGen導入密鑰對並將公鑰複製到本地機器上?它會是一個獨立於私鑰的文件嗎?
PS我的兩個本地機器和EC2實例是Ubuntu的12.04
與'puttygen'意味着將您的pem文件轉換爲ppk,如下所示:'sudo puttygen ./.ssh/keyfile.pem -o ./。ssh/keyfile.ppk' –