|
|
@ -954,11 +954,14 @@ cmdline.spec::cmd:vps-setup:run() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
SUPPORTED_KEY_TYPE=(ssh-rsa ssh-ed25519) |
|
|
|
Section Checking access |
|
|
|
while read-0 key; do |
|
|
|
prefix="${key%% *}" |
|
|
|
if [ "$prefix" != "ssh-rsa" ]; then |
|
|
|
if ! [[ " ${SUPPORTED_KEY_TYPE[*]} " == *" $prefix "* ]]; then |
|
|
|
err "Unsupported key:"$'\n'"$key" |
|
|
|
echo " Please use only key of the following type:" >&2 |
|
|
|
printf " - %s\n" "${SUPPORTED_KEY_TYPE[@]}" >&2 |
|
|
|
return 1 |
|
|
|
fi |
|
|
|
label="${key##* }" |
|
|
|