From 3187c03e88af0ef2e627d3342aabf9581f3a77ed Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Tue, 5 Jan 2021 20:08:03 +0100 Subject: [PATCH] Disable password auth, mention rM2 ed25519 issue Fixes #38 --- README.md | 2 +- reStream.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff46375..fc93d83 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ reMarkable screen sharing over SSH. 1. Clone this repository: `git clone https://github.com/rien/reStream`. 2. Install `lz4` on your host with your usual package manager. On Ubuntu, `apt install liblz4-tool` will do the trick. -3. [Set up an SSH key and add it to the ssh-agent](https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent), then add your key to the reMarkable with `ssh-copy-id root@10.11.99.1`. +3. [Set up an SSH key and add it to the ssh-agent](https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent), then add your key to the reMarkable with `ssh-copy-id root@10.11.99.1`. **Note:** the reMarkable 2 doesn't support `ed25519` keys, those users should generate and `rsa` key. 4. Copy the `restream` executable to the reMarkable and make it executable. ``` # scp restream.arm.static root@10.11.99.1:/home/root/restream diff --git a/reStream.sh b/reStream.sh index 4f3bc54..1658a51 100755 --- a/reStream.sh +++ b/reStream.sh @@ -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