diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-02-12 17:06:17 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-02-12 17:06:17 +0100 |
commit | d42be4aae613212561e8b0e608ca313be5d89330 (patch) | |
tree | 85b00e66960b553712d3a92557cd6482c00ce6e6 /scripts/ssh-lxd | |
parent | c9d032760c886d5b639df15e50ac8b0636cb0524 (diff) |
2023 update
Diffstat (limited to 'scripts/ssh-lxd')
-rwxr-xr-x | scripts/ssh-lxd | 9 |
1 files changed, 0 insertions, 9 deletions
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 |