tmate-io / tmate

Instant Terminal Sharing
https://tmate.io/
Other
5.55k stars 298 forks source link

Webhook not working on newer Raspbian or raspberry pi #284

Closed anantSwajal closed 1 year ago

anantSwajal commented 1 year ago

Hello,

I have been trying to use tmate webhooks on a raspberry pi. I have setup an AWS api to accept the ssh strings and store them in a database.

The webhook works when using it on an older version of Raspbian from 2020 but if I use a newer version, nothing happens. I checked the logs of the webhook and no request was registered.

I have followed the steps mentioned in the wiki and it seems that tmate just doesn't use the .tmate.conf file. I had to use the arm32 binary.

I have tried forcing the file using the tmate -F -f .tmate.conf command but it still doesn't send anything to the webhook. I tried using tmux.conf as well.

The exact same settings work fine on the older pi.

If anyone has any ideas as to what could be causing the issue, I would appreciate any hints.

Regards, Anant

anantSwajal commented 1 year ago

Well, the issue was that the conf file was using CRLF line endings, changing the line endings fixed the issue. Found this out while setting up my own tmate-ssh-server and the port threw an error because of line endings.

I was so troubled by some thing this silly, embarrassing.