Add key import step

This commit is contained in:
Jafner 2021-11-18 15:01:15 -08:00 committed by GitHub
parent 2baf8af558
commit 646aa11a0c

View File

@ -1,5 +1,6 @@
#!/bin/bash
sudo sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
cp .ssh/* ~/.ssh/
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
sudo systemctl start sshd.service