Hi everyone
I've been using AWS (Amazon Web Services) and their EC2/Cloud Formation services for the past week and have been testing the instant Drupal sites via the Cloud Formation. After much trial and error I have everything working with the exception that I am unable to upload/download files to the server as it requires SFTP utilising public/private key pairs. I've done everything possible and have viewed umpteen articles in relation to this but still cannot find any answers on how to do this via my mac.
I have setup a .ssh directory in my home directory, have set the .pem files so only I can read/write them, including allowing access to the server on port 22 but I'm still having no joy in connecting to the server. Most of the the time I'm getting 'Permission denied (publickey)' and I have no idea what I'm doing wrong.
Just so you know the server is working correctly and displaying the test site www.agentfame.com so it is purely an access issue.
If anyone can advise, help or even direct me to some suitable articles it would be most appreciated.
Thank you
Stephen
Comments
If you want to use a specific
If you want to use a specific key file to access a server then you could try something like the following:
if you were doing this:
You should be able to do this
Have you checked the Amazon
Have you checked the Amazon security policy (Firewall) for which inbound ports are allowed? 21/22. Also have you tried connecting via sftp using an sftp client to see if it works or are you trying to upload a file within Drupal itself?
While I am not using mac, I
While I am not using mac, I am an EC2 newbie as well, and don't like their limitations regarding to SSH connectivity.
I was using s simple editor (edit plus) and a ftp client (flashfxp) - and both are just not ready for EC2...
My solution was FileZilla, and since it seems to have mac version, it might solve your problems as well.
You can find nice instructions here
Good luck,
Shushu
Re: AWS Piblic Keys
http://stackoverflow.com/questions/1454629/aws-ssh-access-permission-den...
Thanks
Thanks to everyone for the help.
Strangely it appeared to be only an issue with instances created from the Amazon Cloud Formation service. I've since created an instance from scratch and have connected to both via terminal (Steve) and Filezilla (Shushu). I'm not sure what the difference is.
When I eventually discover where I've gone wrong I'll post to here as no-doubt there will be others who will experience the same issues.
-v
Don't forget to stick in a -v or -vvvvv in the ssh command for getting lots of debug info. It can turn up answers if you search the last few debug messages.