I have one AWS private ec2 instance available in VPC. I also have one public subnet ec2 instance available in same VPC. I am able to connect to public instance using putty and as well as I am able to connect to private instance using Bastion host. Now my question is how can I transfer my code or some files to private ec2 instance .I am also able to ping my private instance from public instance. I tried to copy files from public instance to private ec2 instance, but it always gives public key error .
↧