An AWS EC2 instance’s ID, among many other details, can be found in the instance’s meta data. Here’s how to retrieve an instance’s ID with wget, php, and cURL.
Learn how to easily generate and add a new public and private key pair to an AWS EC2 instance. This is useful if you ever need to replace a compromised key or provide ssh access to multiple users without sharing private keys.
1. Update the current hostname
sudo hostname new-hostname
This command will instantly update the hostname which prevents having to reboot. It is not, however, persistent so your changes will be lost the next time you do reboot. 2. Update hostname File
sudo nano /etc/hostname
Delete the current hostname and replace it with yours. This makes the new hostname persist … Continued
Despite what some say, There are several good reasons that you might want to have multiple IPs assigned to one server. If you’re using an AWS EC2 Linux instance then adding additional IPs is fairly simple. Here’s how it’s done.
Using git to deploy code across multiple servers is a handy technique that works in pretty much any situation. That is, until you’re trying to deploy to an environment such as Amazon’s EC2 servers, which uses .pem files to login. In these situations, the simplest solution I’ve found is a rather ancient technique: SSH keys.