Jafner.net/dotfiles_github/setup_sshd.sh
2021-11-18 15:01:15 -08:00

7 lines
281 B
Bash
Executable File

#!/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