Posts

Showing posts with the label SSH

Useful bash and friends commands

Useful bash and friends commands Since I have installed Ubuntu as a subsystem , I see myself using more and more bash. The reason being that all the VMs I spin up are Ubuntu VMs. My interactions with my servers are very basic but even for those, there are many beautiful commands which ease my interactions. Today I would like to go through the commands and tips which I use on a daily basis: ssh scp aliases less grep 1. ssh 1.1 Remote actions The ssh command allows us to remotly access a terminal or to execute commands remotly. For example when we create a new EC2 instance on AWS we can download the private key. This key can be used to ssh into the vm. ssh -i key.pem user:hostname -i is used to indicate the identity file to use. You might need to change the permissions on the file before it can be used with chmod 700 key.pem . It is also possible, to make life easier, to setup ssh to autodetect the private key file to use based on the host we are trying to access. We ca...