I posted question yesterday How to copy SSL to EC2. This is what I am supposed to do:
You can connect to your Zeppelin notebook using an HTTPS URL. This requires a Secure Sockets Layer (SSL) certificate on your Amazon EC2 instance. The notebook server must provide web browsers with a certificate to validate its authenticity and to allow encrypted traffic for sensitive data such as passwords.
If you have an SSL certificate from a certificate authority (CA), copy your SSL certificate key store onto the Amazon EC2 instance into a path that the ec2-user has write access to, such as /home/ec2-user/.
I copied server.crt but I can not make connection from my Mac OS to ec2 instance. I will repeat the steps:
- Generated a private key and certificate signing request
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl req -new -key server.key -out server.csr
- Generated a self-signed SSL certificate
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
My next steps:
scp -i sparktest.pem server.crt ec2-34-245-107-45.eu-west-1.compute.amazonaws.com
ssh -i sparktest.pem ec2-34-245-107-45.eu-west-1.compute.amazonaws.com
milenko@ec2-34-245-107-45.eu-west-1.compute.amazonaws.com: Permission denied (publickey).
EC2 was created with Cloudformation.
Why I got permission denied? What should I check?