This commit is contained in:
ahmadbilalkhalid 2019-09-02 18:04:11 +05:00
parent 896fb9fc68
commit 2abcc75b38
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +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