Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable SSH server for pocketbook devices #1559

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Conversation

rjd22
Copy link
Contributor

@rjd22 rjd22 commented Dec 4, 2022

Pocketbooks have a internal dropbear SSH server that is not used (I'm not sure why but most likely they use it for development). I was able to boot this SSH server so I was wondering if I it would be possible to use KoReaders dropbear server implementation with the no password improvements.

After making my own build of them it seems that this is actually working fine with some restrictions. You can only login with the reader user and don't have root access. But it will make debugging Pocketbooks a lot easier!

The command to login into pocketbooks is:

ssh -T reader@10.0.0.251 -p 2222

For some reason there is no tty access even when lsof /dev/pts/* gives results do the -T flag is needed else the following error will be thrown:

debug2: channel_input_status_confirm: type 100 id 0
PTY allocation request failed on channel 0
debug3: receive packet: type 100
debug2: channel_input_status_confirm: type 100 id 0
shell request failed on channel 0

This change is Reviewable

@NiLuJe
Copy link
Member

NiLuJe commented Dec 4, 2022

The tty issue might need to be documented somewhere. There might be a wiki page for the SSH stuff already?

@Frenzie Frenzie merged commit f2fed46 into master Dec 4, 2022
@Frenzie Frenzie deleted the feat/pocketbook-ssh-server branch December 4, 2022 21:49
@Frenzie
Copy link
Member

Frenzie commented Dec 4, 2022

Yes, it's basically a c/p of a quick post I once wrote in an issue somewhere.
https://github.com/koreader/koreader/wiki/SSH

@Frenzie
Copy link
Member

Frenzie commented Dec 4, 2022

And your issue's already on it I think: https://github.com/koreader/koreader/wiki/SSH#ssh-fails-with-error-message-packet_write_wait-connection-to--port-2222-broken-pipe

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants