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?

gefragt vor 2 Jahren247 Aufrufe
1 Antwort
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
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen