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: for the first time and you are confused at: ssh -i /path/my-key-pair.pem 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: You’ll want to download the latest version of Ubuntu and most probably the desktop version: 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.

How to find out the location where Docker stores the images on MacOS

By | January 17, 2020

In Docker preferences, select “Disk” and you’ll see the disk image location. You’ll also see the allocated image size and the amount used as well. The location for me was: /Users/sean/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw (Sometimes it the extension can be .qcow2 as well) Other locations for previous versions and other OS’s are: /Users/MyUserName/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 $HOME/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 /Users/USERNAME/.docker/machine/machines

Docker Useful Commands

By | December 28, 2019

Images List: docker images -a Remove: docker rmi Image Image Remove all images: docker rmi $(docker images -a -q) Containers List: docker ps -a Remove: docker rm ID_or_Name ID_or_Name Stop all containers: docker stop $(docker ps -a -q) Remove all containers: docker rm $(docker ps -a -q) Volumes List: docker volume ls Remove: docker volume… Read More »