Jafner.net/dotfiles_github/setup_sshd.sh

5 lines
262 B
Bash
Raw Normal View History

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
sudo systemctl enable sshd.service
sudo systemctl start sshd.service