From 0f6ae239e318434ec7e00eb2aeb0abeec8efdd67 Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Thu, 25 Apr 2013 16:27:40 +0200 Subject: [PATCH] storage_deploy.sh: change to local dir, rework rsa keys Signed-off-by: Thilo Fromm --- .../id_rsa.storage-auto-deploy | 0 .../id_rsa.storage-auto-deploy.pub | 0 storage_deploy.sh | 7 +++++-- 3 files changed, 5 insertions(+), 2 deletions(-) rename id_rsa.storage-auto-deploy => .ssh/id_rsa.storage-auto-deploy (100%) rename id_rsa.storage-auto-deploy.pub => .ssh/id_rsa.storage-auto-deploy.pub (100%) diff --git a/id_rsa.storage-auto-deploy b/.ssh/id_rsa.storage-auto-deploy similarity index 100% rename from id_rsa.storage-auto-deploy rename to .ssh/id_rsa.storage-auto-deploy diff --git a/id_rsa.storage-auto-deploy.pub b/.ssh/id_rsa.storage-auto-deploy.pub similarity index 100% rename from id_rsa.storage-auto-deploy.pub rename to .ssh/id_rsa.storage-auto-deploy.pub diff --git a/storage_deploy.sh b/storage_deploy.sh index 9668f8c..0c1d168 100755 --- a/storage_deploy.sh +++ b/storage_deploy.sh @@ -11,7 +11,10 @@ log() { # ---- prepare() { - chmod 600 id_rsa.storage-auto-deploy + cd `dirname $0` + + chmod 700 .ssh + chmod 600 .ssh/id_rsa.storage-auto-deploy } # ---- @@ -19,7 +22,7 @@ prepare() { rexec() { local srv="$1" ; shift - ssh -i id_rsa.storage-auto-deploy \ + ssh -i .ssh/id_rsa.storage-auto-deploy \ -o UserKnownHostsFile=/dev/null \ -o StrictHostKeyChecking=no \ -o PasswordAuthentication=no \ -- 2.39.5