This commit is contained in:
ahmadbilalkhalid 2019-09-02 15:10:41 +05:00
parent 1e6193b6a4
commit ed7e00f86b
1 changed files with 1 additions and 0 deletions

View File

@ -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