mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
droplets: Disable SSH password authentication.
We cannot disable this in base droplet as DigitalOcean overrides the file and enable password authentication during droplet creation.
This commit is contained in:
@@ -124,6 +124,8 @@ def set_user_data(username: str, userkey_dicts: List[Dict[str, Any]]) -> str:
|
|||||||
|
|
||||||
{setup_zulipdev_ssh_keys}
|
{setup_zulipdev_ssh_keys}
|
||||||
{setup_root_ssh_keys}
|
{setup_root_ssh_keys}
|
||||||
|
sed -i "s/PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config
|
||||||
|
service ssh restart
|
||||||
{hostname_setup}
|
{hostname_setup}
|
||||||
su -c '{server_repo_setup}' zulipdev
|
su -c '{server_repo_setup}' zulipdev
|
||||||
su -c '{python_api_repo_setup}' zulipdev
|
su -c '{python_api_repo_setup}' zulipdev
|
||||||
|
|||||||
Reference in New Issue
Block a user