]> git.zndr.dk Git - dotfiles.git/commitdiff
Automatic load ssh keys
authorJannik ZANDER <jzander@grundfos.com>
Mon, 18 Dec 2017 08:18:45 +0000 (09:18 +0100)
committerJannik ZANDER <jzander@grundfos.com>
Mon, 18 Dec 2017 08:18:45 +0000 (09:18 +0100)
.config/bash/environ
.ssh/config [new file with mode: 0644]

index 3181cf461c2e82ab3210da0c5a667802cb586db2..cb5e7397e9ba53c7b0df8f2d841239803390ef1c 100644 (file)
@@ -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 (file)
index 0000000..526cafd
--- /dev/null
@@ -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
+