Add key import step
This commit is contained in:
parent
2baf8af558
commit
646aa11a0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user