Uploading simulation files to Amazon HPC

Asked by KJ Chuah on 2018-11-29

Hi all,
I would like to run YADE using Amazon HPC service, EC2.
I am referring to the instructions in this link
https://yade-dem.org/doc/amazonEC2.html#cloudcomputing
It all went well until the step in uploading my simulation files by following this
instruction

scp -r -i path/to/KeyYADEbox.pem path/to/yadeSimulation ubuntu@ec2-XX-
XXX-XX-XX.us-west-2.compute.amazonaws.com:~/yadeSimulation

Here is the command line i key-in :

scp -r path/to/KeyPair.pem path/to/yadeSimulation ubuntu@ec2-XX-XXX-XX-
XX.us-west-2.compute.amazonaws.com:~/yadeSimulation

(FYI, my key pair is KeyPair.pem)

Here is the respond from the system:

The authenticity of host 'ec2ec2-XX-XXX-XX-
XX.us-west-2.compute.amazonaws.com (1xx.xx.xx.x)' can't be established.
EDCSA key fingerprint is SHA....... .
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2ec2-XX-XXX-XX-
XX.us-west-2.compute.amazonaws.com, 1xx.xx.xx.x' (ECDSA) to the list of known hosts.
Permission denied (publickey).
lost connection

1. Could you please guide me to solve this?
2. Is the KeyYADE.pem (in the instruction command line) referring to my
key pair file name?

Thank you..

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
2018-12-01
Last query:
2018-12-01
Last reply:
2018-11-30
Robert Caulk (rcaulk) said : #1

Hello KJ,

>>It all went well until the step in uploading my simulation files by following this
instruction

>>scp -r -i path/to/KeyYADEbox.pem path/to/yadeSimulation ubuntu@ec2-XX-
XXX-XX-XX.us-west-2.compute.amazonaws.com:~/yadeSimulation

The X's are not to be taken literally. They are place holders for the unique ID amazon assigns your instance. Same with ".us-west-2." That might change if you registered your instance in a different region. You should go to your amazon instance and find it's identifier and replace the X's accordingly.

Cheers,

Robert

KJ Chuah (kjchuah2) said : #2

Hi Robert,

Thanks for your reply
Yes, indeed I have entered exactly the Public DNS of my instance.
But the problem still appears the same...

KJ

Robert Caulk (rcaulk) said : #3

>>Yes, indeed I have entered exactly the Public DNS of my instance.

Your questions shows otherwise. IF you are hoping for someone to find an error in the command you are using, I guess you should post the actual commands you are using? Otherwise we are just spinning our wheels here ;-)

What folder is your KeyPair.pem in?

At the risk of redundancy, and more wheel spinning: path/to/KeyPair.pem should not be taken literally. "path/to/" should be replaced with the actual directory folder path on your computer.

You mentioned in in the private email that this is the first time you've used Linux. Consider working through the Yade tutorial [1] before launching remote Yade instances by shell.

[1]https://yade-dem.org/doc/tutorial-hands-on.html#shell-basics

I'm glad you found help here but please note that uploading a file to an EC2 instance is probably covered by Amazon's support already.

KJ Chuah (kjchuah2) said : #5

Hi Robert,

here is my command code:

ubuntu@ip-172-31-28-3:~$ scp -r Desktop/aws/KeyPair.pem Desktop/aws_test <email address hidden>:~/aws_test
Permission denied (publickey).
lost connection

>>What folder is your KeyPair.pem in?
In Desktop/aws/

Thank you.

Robert Caulk (rcaulk) said : #6

This is a good learning opportunity :-) [1]

[1]https://yade-dem.org/doc/tutorial-hands-on.html#shell-basics

KJ Chuah (kjchuah2) said : #7

Thanks Bruno Chareyre, that solved my question.

KJ Chuah (kjchuah2) said : #8

Thanks Robert and Bruno,

it was my careless mistake in which I trying to upload my folder after connecting to the instance, thanks for the advise.

Robert Caulk (rcaulk) said : #9

Shell basics are quite helpful when it comes to yade :-) have fun fishing!

Le sam. 1 déc. 2018 à 09:27, KJ Chuah <email address hidden>
a écrit :

> Question #676450 on Yade changed:
> https://answers.launchpad.net/yade/+question/676450
>
> KJ Chuah posted a new comment:
> Thanks Robert and Bruno,
>
> it was my careless mistake in which I trying to upload my folder after
> connecting to the instance, thanks for the advise.
>
> --
> You received this question notification because you are subscribed to
> the question.
>