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

SSH_CONNECTION is not as expected #105

Open
Rintse opened this issue Apr 16, 2024 · 0 comments
Open

SSH_CONNECTION is not as expected #105

Rintse opened this issue Apr 16, 2024 · 0 comments

Comments

@Rintse
Copy link

Rintse commented Apr 16, 2024

For some reason that I was not able to decipher after a quick search, there is extra information in the SHH connection related environment variables on the tablet:

root@reMarkable:~# env | grep SSH
SSH_CONNECTION=::ffff:10.11.99.2 46948 ::ffff:10.11.99.1 22
SSH_CLIENT=::ffff:10.11.99.2 46948 22
SSH_TTY=/dev/pts/1

While there is an easy (ugly) fix I used on my end:

root@reMarkable:~# echo $SSH_CONNECTION | cut -d" " -f3 | cut -d":" -f4
10.11.99.1
# still works with the old format
root@reMarkable:~# echo "10.11.99.1" | cut -d":" -f4
10.11.99.1

I don't like it enough to propose it as a solution.

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

No branches or pull requests

1 participant