From ce8cc16ce2ce755487e015cc20fadb39d5fbcf90 Mon Sep 17 00:00:00 2001 From: ardentsword Date: Tue, 12 Jan 2016 01:42:14 +0100 Subject: [PATCH] added auto start and add ssh keys to agent --- bash/.autossh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bash/.autossh diff --git a/bash/.autossh b/bash/.autossh new file mode 100755 index 0000000..7c1498d --- /dev/null +++ b/bash/.autossh @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ -z "$SSH_AUTH_SOCK" ] ; then + eval `ssh-agent -s` + ssh-add +fi