Author Archives: cloudnthings

Connection closed port 22 when connecting to Amazon AWS EC2 via ssh

By | March 12, 2020

If you are getting a connection closed on port 22 when trying to connect to Amazon AWS EC2 server via ssh, the chances are the user name you are using is wrong. If you are following the instructions at: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html for the first time and you are confused at: ssh -i /path/my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com then you are… Read More »

Category: AWS

AWS Permissions are too open error when trying to connect to EC2

By | March 9, 2020

If you are trying to connect to an EC2 instance in AWS and you get the following permission error saying that your key file is too open…. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for ‘awskeypair.pem’ are too open. It is required that… Read More »

Category: AWS

Quick links to set up Ubuntu on Mac

By | January 27, 2020

You’ll need to download Virtual Box: https://www.virtualbox.org/wiki/Downloads You’ll want to download the latest version of Ubuntu and most probably the desktop version: https://ubuntu.com/download/desktop Go through the install process. You’ll want to turn on Guest Addition in order to be able to copy and paste between the 2 OS’s You’ll want to set the Virtual Box display… Read More »

How to remove Last Login in MacOS bash terminal

By | January 25, 2020

When you open terminal you’ll probably be greeted with: Last login: Sat Jan 25 07:54:26 on ttys001 /Users/sean> How to get rid of Last login or other Method Of The Day (MOTD) messages? It is a 2 second fix. Just type “touch .hushlogin”. Just the presence of this file will suffice.