scp command difference for Ubuntu EC2 in a VPC

0

I'm attempting to scp to an Ubuntu EC2 inside a VPC and getting timed out.

Established facts:

I can ssh into the VPC itself - the keypair works and the instance subnet is open to the internet.

The folder I'm attempting to transfer to on the EC2 has permissions 700

The command I'm running is: scp -i mykey.pem dumbtest.txt ubuntu@ec2-<my-ip>.compute-1.amazonaws.com:/home/ubuntu

Are there additional steps I need to take to scp into EC2's on a VPC?

질문됨 2년 전247회 조회
1개 답변
0

Hello, Regarding SCP'ing into the VPC, I believe you are referring to SCPing into the EC2 instance. As per my understanding, the command you are using is a Pull command from the on-premise via the internet.

Have you verified the security groups and NACL settings to exactly what are you allowing in the rules. What is the error that you are getting once you try to copy the folder ? Is it starting and then stopping or you re getting a failure/denied error ?

Additionally, Is it possible/Have you tried to zip/compress the folder and then try to copy the same ? You can use gzip to compress the folder and then copy.

profile pictureAWS
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인