This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Showing posts with label Amazon EC2. Show all posts
Showing posts with label Amazon EC2. Show all posts
Tuesday, January 1, 2013
S3 Utility
Here is a great tool for working with Amazon S3. It even has a wide variety of repos available (easier than compiling from source). s3cmd is very easy to setup. It is the easiest to work with of all the S3 tools I have used.
Friday, August 3, 2012
Create ssh public key from private key
If you have a private key and want to create the public key from that (to put in ~/.ssh/authorized_keys, for example), do the following:
ssh-keygen -f <my_private_key> -y > <my_public_key>
For example:
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
If you are using this to ssh with keys, add my_public_key (eg. ~/.ssh/id_rsa.pub) to ~/.ssh/authorized_keys on the remote server.
Then ssh with the private key to the remote server to test.
ssh-keygen -f <my_private_key> -y > <my_public_key>
For example:
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
If you are using this to ssh with keys, add my_public_key (eg. ~/.ssh/id_rsa.pub) to ~/.ssh/authorized_keys on the remote server.
Then ssh with the private key to the remote server to test.
Wednesday, April 25, 2012
Friday, February 24, 2012
DenyHosts setup on Red Hat/Centos/Amazon AMIs
This is a really useful tutorial for setting up DenyHosts to protect against brute force ssh attacks.
http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/
DenyHosts homepage:
http://denyhosts.sourceforge.net/
http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/
DenyHosts homepage:
http://denyhosts.sourceforge.net/
Subscribe to:
Posts (Atom)