I have deployed my Django project to Amazon Elastic Beanstalk. When you create an EBS environment, you can assign a key pair to it, and use Putty to SSH to the EC2 instance, and everything works, but when you use git aws.push, trying to SSH to the same session (Just loading it in Putty), does not accept the previous key pair, and returns "Server refused our key".
If you assign a new key pair to the EBS environment again, you can SSH using Putty and without any problem, but by assigning a new key, it terminates the current EC2 instance and creates a new one which results in loosing all the settings that you had previously done using SSH.
Any help would be appreciated.