2021-11-11 18:39:01 -08:00
|
|
|
#!/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
|
2021-11-18 15:01:15 -08:00
|
|
|
cp .ssh/* ~/.ssh/
|
2021-11-11 18:39:01 -08:00
|
|
|
sudo systemctl enable sshd.service
|
2021-11-18 15:01:15 -08:00
|
|
|
sudo systemctl start sshd.service
|