Home>

I want to import csv file data into phpmyadmin installed in AWS/EC2 with php query statement.
Therefore, I am trying to put php file and csv file in the same directory in EC2.
The command to copy from the local csv file returns with an error.
We would appreciate if you could point out any mistakes in the steps you have performed so far.

You can log in to EC2 with ssh.

Execution command
scp -i /Users/apple/Downloads/ssh.pem winneyuser.csv/-r ec2-user @ IP address:/home/ec2-user /
Code
Error text
ssh: connect to host IP address port 22: Operation timed out
lost connection
Code