mirror of
https://github.com/jbowdre/vsphere-k8s.git
synced 2024-11-23 00:12:18 +00:00
7 lines
300 B
Bash
7 lines
300 B
Bash
|
#!/bin/bash -eu
|
||
|
echo '>> Configuring SSH'
|
||
|
sudo sed -i 's/.*PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
|
||
|
sudo sed -i 's/.*PubkeyAuthentication.*/PubkeyAuthentication yes/' /etc/ssh/sshd_config
|
||
|
sudo sed -i 's/.*PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||
|
|