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.
Blocking traffic to port 22 (SSH) is one of the first steps you should take when hardening a server. Locking down port 22 not only keeps unwanted people from gaining access to your server, it also helps prevent a certain type of DDoS attacks called SYN floods. Using IPTables and a whitelist approach is the … Continued