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
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF
2 changed files with 5 additions and 3 deletions

View File

@ -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

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