From d42be4aae613212561e8b0e608ca313be5d89330 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 12 Feb 2023 17:06:17 +0100 Subject: 2023 update --- scripts/ssh-lxd | 9 --------- 1 file changed, 9 deletions(-) delete mode 100755 scripts/ssh-lxd (limited to 'scripts/ssh-lxd') diff --git a/scripts/ssh-lxd b/scripts/ssh-lxd deleted file mode 100755 index b4bf2fe..0000000 --- a/scripts/ssh-lxd +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -IP=$(lxc ls -fcsv | grep $1 | tr ' ' , | cut -d, -f3) -if ! ssh -o BatchMode=yes root@$IP; then - lxc exec $1 -- bash -c "mkdir -p /root/.ssh && \ - echo \"$(ssh-add -L)\" \ - > /root/.ssh/authorized_keys" - ssh root@$IP -fi -- cgit v1.2.3