This commit is contained in:
parent
1e6193b6a4
commit
ed7e00f86b
|
@ -33,6 +33,7 @@ setup_ssh() {
|
|||
# whenever we got http://metadata resolving to url work successfully.
|
||||
|
||||
metadata=$(curl http://[2a0a:e5c1:144::]:5000)
|
||||
echo metadata
|
||||
echo "$metadata" | jq -r '.["ssh-key-list"] | .[]' > ssh-key-list.txt
|
||||
while read ssh_key; do
|
||||
if ! grep -q "$ssh_key" $ssh_authorized_keys_path; then
|
||||
|
|
Loading…
Reference in New Issue