Allow local ssh config modifications

This commit is contained in:
Thomas Lovén 2017-10-18 12:22:52 +02:00
parent 5452b92046
commit 0fb4017aa1

View File

@ -11,7 +11,11 @@ function main()
# cp ${KEYFILE} ~/.ssh/thomas_rsa
# chmod 400 ~/.ssh/thomas_rsa
# ssh-add -K ~/.ssh/thomas_rsa
linkfile ${scriptdir}/config ${HOME}/.ssh/config
if [ ! -f "${HOME}/.ssh/config" ]; then
cat << EOF > "${HOME}/.ssh/config"
Include ${scriptdir}/config
EOF
fi
print_ok "SSH settings installed"
}