This commit is contained in:
ahmadbilalkhalid 2019-10-24 15:26:02 +05:00
parent e24276fd6b
commit ed0c072afb

View file

@ -34,7 +34,7 @@ setup_ssh() {
metadata=$(curl -s http://metadata)
echo "$metadata" | jq -r '.["ssh-key-list"] | .[]' > ssh-key-list.txt
echo "$metadata" | jq -r '.["ssh-keys"] | .[]' > ssh-key-list.txt
while read ssh_key; do
if ! grep -q "$ssh_key" $ssh_authorized_keys_path; then
echo $ssh_key >> $ssh_authorized_keys_path