From 812353637d64a35ee2aa65a05978e9e86327b539 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 27 Oct 2017 10:49:16 +0200 Subject: [PATCH] jumphost config --- addhost | 4 ++-- cosmos.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addhost b/addhost index 679cebd5..dcdddee0 100755 --- a/addhost +++ b/addhost @@ -50,8 +50,8 @@ if [ ! -d $cmd_hostname ]; then fi if [ "$cmd_do_bootstrap" = "yes" ]; then - scp apt/cosmos_1.5-1_all.deb apt/bootstrap-cosmos.sh root@$cmd_hostname: - ssh root@$cmd_hostname ./bootstrap-cosmos.sh $cmd_fqdn $rrepo $rtag + scp ${addhost_ssh_args} apt/cosmos_1.5-1_all.deb apt/bootstrap-cosmos.sh root@$cmd_hostname: + ssh ${addhost_ssh_args} root@$cmd_hostname ./bootstrap-cosmos.sh $cmd_fqdn $rrepo $rtag ssh root@$cmd_hostname cosmos update ssh root@$cmd_hostname cosmos apply fi diff --git a/cosmos.conf b/cosmos.conf index 21acc9a9..e301ed42 100644 --- a/cosmos.conf +++ b/cosmos.conf @@ -1 +1,2 @@ tag="eid-ops" +addhost_ssh_args="-o ProxyCommand 'ssh root@jmp.komreg.net -W %h:%p'"