Web Service/AWS

Filezilla로 .pem 파일을 활용하여 로그인하기

홍진표 2012. 6. 12. 23:21
요약: Edit -> Settings의 Connection-SFTP에 보면 local keypair file의 위치를 지정할 수 있는 항목이 존재하는데, 이곳에 .pem이 있는 디렉토리를 지정하고 로그인 할 때 login type을 interactive로 지정하면 된다는 얘기..
나 같은 경우는 login type을 general(일반)으로 해도 로그인에 지장이 없었다.


FileZilla, SFTP and Amazon EC2

 

I’ve just made a little discovery so thought I would note it in in these pages because I’m sure I’ll need it again.

I’m investigating Amazon’s EC2 at that moment and am trying to put some code up there and struggling to use FTP securely to do it. I use FileZilla on Ubuntu and it seems that FileZilla’s site manager wants me to enter a user name password combination to login to the EC2 instance. However in accordance with Amazon’s recommendations I’m running without user passwords but am instead using public key authentication. But there appears to be nowhere to specify the local private key file location in FileZilla’s Site Manager dialogue.

The answer is that hidden in FileZilla’s settings, Edit->Settings, under the Connection-SFTP setting is a dialogue that allows you to enter the location of the local keypair file. So I added my local key pair at which point FileZilla warned me that it needed to convert my .pem format to a .ppk format. I let it do this and specified the location and name of the converted file. Then, going back to the Site Manager, I set my Amazon host Login Type to Interactive and tried again and I was straight in. Interestingly I didn’t need to tie the Site Manager entry for my EC2 host to the keypair. Just adding the keypair to the general settings as described above did the trick. No messy passwords and no compromised security.

Danny Goodall