a year ago
Hi 👋 I am creating an SSH app using https://github.com/charmbracelet/wish and https://github.com/charmbracelet/bubbletea. If I run my Dockerfile file locally I am able to ssh into the custom TUI app, but when Railway deploys my app, I am unable to SSH into the custom TUI app. I have created a custom domain with the port that the app exposes and when executing the ssh command I am getting a Permission denied (publickey)
.
Please note that I am not trying to get a shell through SSH, I am just trying to access my TUI through SSH thanks to the Wish library. (the library itself states how they don't even create a shell)
Any help regarding this would be appreciated 😄
1 Replies
a year ago
the custom domains would strictly be for https traffic only, you would need to use tcp proxy instead
hi @Brody thanks for the quick reply. I just tried that and I got the error
kex_exchange_identification: read: Connection reset by peer
Connection reset by 35.212.45.XXX port YYYYY
a year ago
are you pointing the tcp proxy to the correct internal port?
I think I am. I have written the same port I expose on my Dockerfile as I did on the TCP proxy creation.
Edit: And also the same port on my source code
a year ago
the EXPOSE in the dockerfile doesnt do anything fwiw
a year ago
what is the host and port you are starting your server on?
a year ago
okay ill try to spin up a wish test
a year ago
yep doesnt work, looks like this wont be something you will be able to host on railway unfortunately
a year ago
no problem!
a year ago
I wonder if someone from staff can take a look at this and give more information about this