Comments (11)
Oh I just realized:
Using the script with the -o flag and recording a video into a file seems to work!
Just using it in landscape/portrait mode doesn't really do anything...
from restream.
Permission denied (publickey,password)
This is an ssh authentication issue.
from restream.
Mhm that's weird though. I can connect to the reMarkable using ssh [email protected] ...
Do you happen to know what might be off then @danshick ?
from restream.
I think you've typed the IP address differently at least once in the issue. I would double check that. Although you've typed it flipped in one place where you claim it is working and typed it correctly in another where you were getting an error, so that could just be nothing.
"[email protected]"
vs.
"[email protected]"
Other than that, you could try adding -v
(or -vv
, or even -vvv
) to https://github.com/rien/reStream/blob/main/reStream.sh#L87 to get more verbose output from SSH. That might help you track down what's going on.
Also, you must use a private key with how reStream is set up, not a password.
from restream.
Oh yeah I'm sorry about the IP addresses, I just typed them from memory the second time.
That's not the issue...
So adding -v
gives me this:
debug1: Server host key: ssh-rsa SHA256:dUMkk1mIzBJOBAj2MBJSS1tLTyvPysNf2xqIVbvltTY
debug1: Host '192.168.178.47' is known and matches the RSA host key.
debug1: Found key in /home/tim/.ssh/known_hosts:3
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/tim/.ssh/id_rsa RSA SHA256:rkjsRc4zUY9W2Ay5O0uDgpIAK4aO2BIX+0cT5P+C3xE
debug1: Will attempt key: /home/tim/.ssh/id_dsa
debug1: Will attempt key: /home/tim/.ssh/id_ecdsa
debug1: Will attempt key: /home/tim/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/tim/.ssh/id_ed25519 ED25519 SHA256:+bgp/FY2Xv1bv9KQ+yWYFK0xL4F4GsG3zQDbVmhqT2k
debug1: Will attempt key: /home/tim/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/tim/.ssh/id_xmss
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/tim/.ssh/id_rsa RSA SHA256:rkjsRc4zUY9W2Ay5O0uDgpIAK4aO2BIX+0cT5P+C3xE
debug1: Server accepts key: /home/tim/.ssh/id_rsa RSA SHA256:rkjsRc4zUY9W2Ay5O0uDgpIAK4aO2BIX+0cT5P+C3xE
nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 0 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
debug1: Trying private key: /home/tim/.ssh/id_dsa
debug1: Trying private key: /home/tim/.ssh/id_ecdsa
debug1: Trying private key: /home/tim/.ssh/id_ecdsa_sk
debug1: Offering public key: /home/tim/.ssh/id_ed25519 ED25519 SHA256:+bgp/FY2Xv1bv9KQ+yWYFK0xL4F4GsG3zQDbVmhqT2k
debug1: Authentications that can continue: publickey,password=0/0
debug1: Trying private key: /home/tim/.ssh/id_ed25519_sk
debug1: Trying private key: /home/tim/.ssh/id_xmss
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey,password).
I'm not really too fluent in ssh speak, so I don't really get what's the issue.
But I'm still very confused how reStream is able to run properly whenever I tell it to output the whole thing into a video file but it doesn't when just asking it to hand it to ffplay..
Does that make any sense?
from restream.
I have no idea why it is working with one flag and not another, but this is clearly an SSH issue.
Can you paste the full text of the working and non-working commands here?
These lines imply that you have a public key that the remarkable will accept as valid, if you have the corresponding private key (likely /home/tim/.ssh/id_rsa). But your client never tries that private key. It may be a permissions error (ls -la /home/tim/.ssh
would confirm) or maybe the file is just missing. Hard to say. None of this explains why one flag works and the other doesn't.
debug1: Offering public key: /home/tim/.ssh/id_rsa RSA SHA256:rkjsRc4zUY9W2Ay5O0uDgpIAK4aO2BIX+0cT5P+C3xE
debug1: Server accepts key: /home/tim/.ssh/id_rsa RSA SHA256:rkjsRc4zUY9W2Ay5O0uDgpIAK4aO2BIX+0cT5P+C3xE
from restream.
@tholzschuh you say:
When I start reStream, after entering my ssh password several times, I get the following output:
This means that your SSH key is not added to the authorized_keys
-file of your remarkable. Can you please do that and try if it works then?
Using password authentication breaks reStream somehow because it cannot ask for a password with the ssh command fetching the image data. It probably has something to do with ffmplay inhibiting entering the password, because when the -o
option is used, we launch the ffmpeg command (and not ffmplay).
from restream.
@rien mhm.. my authodized_keys
contains exactly one key, and that has to be the correct RSA-key, as I can connect to the remarkable using ssh manually (I do have to enter my password for that as well; the RSA-key password that is, not the password of the remarkable).
Does reStream not supporting password authentication mean I have to use an ssh-agent automatically inserting my passwords for me or something?
(also weird: the same reStream script actually did work roughly 1-2 months ago, even thought I had to enter my SSH password several times as well)
Also thanks for taking the time!
from restream.
Ah yes, my previous assumption was incorrect. It is indeed the password on your ssh key that is the issue here, so you will indeed need to use an ssh-agent to cache your password in order to work.
It is weird that it did work for a while and then didn't. Have you changed anything regarding your ssh keys or ssh configuration in that timeframe?
from restream.
Ah alright, I see. Thanks for helping me figure this out!
Mhm.. I don't think so. I did change some SSH related stuff a while ago, but I'm pretty sure that was before reStream stopped working. Maybe my sense of time is tricking me though.
from restream.
I assume this issue is resolved. If this is not the case, please let me know.
from restream.
Related Issues (20)
- Scrambled, dark picture rendering HOT 4
- restream never shuts down on the reMarkable HOT 1
- Consider GitPack support for easier installation HOT 1
- SSH_CONNECTION is not as expected
- grabbing a single frame as CLI argument or image fileformat HOT 1
- OpenSSH 8.8 ssh-rsa problem HOT 1
- Error when running reStream.sh HOT 3
- 1.2.0 not fully released HOT 2
- Output is only a black image HOT 4
- Use a persistent SSH connection HOT 3
- Output is only a white image HOT 2
- Output is blank HOT 14
- Blank window HOT 1
- Suggestion: Set Source IP via Environment Variable HOT 2
- ReMarkable software update 2.12.1.527 breaks reStream HOT 3
- Streamed video is too dark, recordings are corrupted HOT 14
- reMarkable build 3.6.0.1806 changes HOT 11
- Also having a black screen HOT 7
- ffmpeg output is distorted (vertical lines) HOT 7
- [email protected]: Permission denied (publickey,password). HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restream.