Last active
June 8, 2023 22:44
-
-
Save NathanaelGandhi/98d48e44bdedf354af556c891e35ae9c to your computer and use it in GitHub Desktop.
bash function to setup ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# author: Nathanael Gandhi | |
# github.com/NathanaelGandhi | |
################################################################################ | |
# setup ssh # | |
################################################################################ | |
setupSsh() | |
{ | |
echo " • Setup ssh access" | |
apt-get -y install openssh-server | |
systemctl enable ssh | |
ufw allow ssh | |
systemctl restart ssh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment