ssh - Can I connect to an EC2 instance with one key-pair while forwarding another? -


i need connect ec2 instance amazon-provided key-pair, forward public key associated github account can pull private repo (with fabric). possible? if so, need have public key on each remote machine pull from?

yes. use -i option ssh. , agent , agent forwarding github account.

ssh -i my_aws_key_pair.pem -a myawshost 

i assume question, know how whole agent thing. way, can add aws key pair agent ssh-add my_aws_key_pair.pem , need ssh -a. forward both keys though. not sure if wanted avoid or not.


Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -