How To Use a PEM File With rsync

Use the -e option like so:
1 |
rsync -e "ssh -i secret.pem" {sourcespec} {targetspec} |
![]() |
Use the -e option like so:
1 |
rsync -e "ssh -i secret.pem" {sourcespec} {targetspec} |
1 |
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa.pem |
Use the ssh-keygen command on a computer to which you’ve downloaded your private key .pem file; for example: First, ensure permissions will allow ssh-keygen to work: chmod 600 /path/to/the/file/your-key-pair.pem Then generate an RSA public key: ssh-keygen -y -f /path/to/the/file/your-key-pair.pem > your-key-pair.pub
First use SSH to login as the ec2-user:
1 2 3 4 |
ssh -i AWSKeyPair.pem ec2-user@{NewHostName} % sudo su - # |
erics@zeus:/Users/erics # ssh -i foo.pem ec2-user@thehost.foo Last login: Tue Nov 19 20:28:19 2013 from foo.bar __| __|_ ) _| ( / Amazon Linux AMI ___|\___|___| https://aws.amazon.com/amazon-linux-ami/2013.09-release-notes/ No packages needed for security; 7 packages available Run “sudo yum update” to apply all updates. [ec2-user@xyz ~]$ sudo su […]
I was getting this error:
1 |
Failed to save SSL options : The SSL private key file /etc/webmin/miniserv.pem does not exist or does not contain a PEM format key |
Edit the file /etc/webmin/miniserv.conf and add:
1 2 |
ssl=1 ssl_redirect=1 |
Got the client’s web server to accept secure connections via SSL. I configured Apache httpd.conf properly so it used the right certificate file and it finally started working. I love lsof – what a great tool. Naomi just got home. Time for some TLC for her.