How to setup server to accept pem(private RSA key) login w/o password like EC2?

Posted by Chandler.Huang on Server Fault See other posts from Server Fault or by Chandler.Huang
Published on 2012-11-01T07:16:32Z Indexed on 2012/11/01 11:03 UTC
Read the original article Hit count: 241

Filed under:
|
|

I am manage a group of VM and I need to setup all vm create a ssh tunnel to a specific host A. One way to do this is append public key of each VM to host's authorized_keys, but I guess I have to do the append each time i create a VM. So I am trying to config host A to accept pem or private key login without passowrd, just like EC2, client can use "ssh -i PEM" to login host A. But I have tried in vain for hours. I create a rsa public/private key and let VM use the private key to login, no matter what I do, host a still ask for password. Is there anything I missed ? Thanks.

© Server Fault or respective owner

Related posts about security

Related posts about ssh