From: Jannik ZANDER Date: Mon, 18 Dec 2017 08:18:45 +0000 (+0100) Subject: Automatic load ssh keys X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=74ec305e600ad64d9cf6c5f42d34faa2daa15e5c;p=dotfiles.git Automatic load ssh keys --- diff --git a/.config/bash/environ b/.config/bash/environ index 3181cf4..cb5e739 100644 --- a/.config/bash/environ +++ b/.config/bash/environ @@ -2,6 +2,14 @@ export USERNAME=$LOGNAME export HOSTNAME=`hostname` #echo Welcome $USERNAME. You are on Server: $HOSTNAME !!! +# Add keys for github and bitbucket +#if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then +# eval `ssh-agent` +# ln -sf "$SSH_AUTH_SOCK" $HOME/.ssh/ssh_auth_sock +#fi +#export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock +#ssh-add -l > /dev/null || ssh-add + # Set defaults export SHELL='bash' export EDITOR='vim' @@ -21,6 +29,7 @@ export LC_ALL="en_US.UTF-8"; #export LC_PAPER=en_DK.UTF-8 #export LC_MEASUREMENT=en_DK.UTF-8 export KEYMAP=us + # Highlight section titles in manual pages export LESS_TERMCAP_md="${yellow}"; diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..526cafd --- /dev/null +++ b/.ssh/config @@ -0,0 +1,7 @@ +# Global SSH configurations here will be applied to all hosts + +IdentityFile ~/.ssh/github +IdentityFile ~/.ssh/id_rsa +IdentityFile ~/.ssh/grundfos +IdentityFile ~/.ssh/jira_wdc +