summaryrefslogtreecommitdiff
path: root/scripts/ssh-lxd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ssh-lxd')
-rwxr-xr-xscripts/ssh-lxd9
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