16 lines
310 B
Bash
Executable File
16 lines
310 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function main()
|
|
{
|
|
# copy private key to .ssh
|
|
# cp ${KEYFILE} ~/.ssh/thomas_rsa
|
|
# chmod 400 ~/.ssh/thomas_rsa
|
|
# ssh-add -K ~/.ssh/thomas_rsa
|
|
if [ ! -e ${HOME}/.ssh/config ]; then
|
|
rm -f ${HOME}/.ssh/config
|
|
ln -s ${DOTFILES}/ssh/config ${HOME}/.ssh/config
|
|
fi
|
|
}
|
|
|
|
main "$@"
|