Setting up a fresh Ubuntu image

This is part of my Cassandra learning series.

vim /etc/ssh/sshd_config
PermitRootLogin yes
sudo systemctl restart sshd

Client machine (my Mac for example)

ssh-keygen
ssh-copy-id -i ansible_host_sshkey.pub root@<IP address>

Ignore the SSH key name. I ended up using the same ssh key for my VMs

Leave a Reply

Your email address will not be published. Required fields are marked *