Cherian Thomas

19 February 2017

SSH commands to get a VM rolling

I am an engineer by profession but stopped coding a while back. Despite that once in a while I need these SSH commands. This is my reference


Login to the machine with root.

adduser cherian

sudo usermod -aG wheel cherian – Add to wheel group

From local machine

ssh-copy-id [email protected] address

sudo vi /etc/ssh/sshd_config

follow to disable password auth

sudo systemctl restart sshd