Disable password auth, mention rM2 ed25519 issue

Fixes #38
This commit is contained in:
Rien Maertens
2021-01-05 20:08:03 +01:00
parent c41b877789
commit 3187c03e88
2 changed files with 5 additions and 3 deletions

View File

@ -78,12 +78,14 @@ done
ssh_cmd() {
echo "[SSH]" "$@" >&2
ssh -o ConnectTimeout=1 "$ssh_host" "$@"
ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "$ssh_host" "$@"
}
# check if we are able to reach the remarkable
if ! ssh_cmd true; then
echo "$ssh_host unreachable"
echo "$ssh_host unreachable or you have not set up an ssh key."
echo "If you see a 'Permission denied' error, please visit"
echo "https://github.com/rien/reStream/#installation for instructions."
exit 1
fi