| Title | TLBB SSH Login by Root account |
| Permission | rw-r--r-- |
| Author | Unknown |
| Date and Time | 7:52:00 PM |
| Category | linux| tlbb |
| Share |
sudo nano /etc/ssh/sshd_config
PermitRootLogin without-password
to
PermitRootLogin yes
And restart the SSH server:
sudo service ssh restart
ssh -i KEYPAIR.pem ubuntu@HOSTNAME 'sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/'
