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.