This file contains 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 | |
######################################################################################################################## | |
# This function will check if the ssh config file located at ~/.ssh/config exists. If it does not exist, it will create | |
# it and write some default content and settings to it. It will also set the correct permissions for the ssh config file | |
# to be user readable and writable, but not writable by others (700 for the .ssh directory, and 600 for the config file). | |
# This function can be used to initialize a new ssh config file if one doesn't already exist, or to reset the config file | |
# to default settings. | |
######################################################################################################################## | |
#A function to initialize an ssh config file with basic settings and permissions |