Browse Source

fix: [vps-setup] make password login work

The ``stdin`` was blocked for sshpass to read it

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc1
Valentin Lab 3 years ago
parent
commit
b23aa56680
  1. 2
      bin/0km

2
bin/0km

@ -80,7 +80,7 @@ ssh:open() {
-o ConnectTimeout=5 -o StrictHostKeyChecking=no \
"${ssh_options[@]}" \
"$hostname" "$@" -- true)
"${full_cmd[@]}" </dev/null >/dev/null 2>&1 || {
"${full_cmd[@]}" >/dev/null 2>&1 || {
err "Failed: ${full_cmd[*]}"
return 1
}

Loading…
Cancel
Save