2 years 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 😄
14 Replies
2 years 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 YYYYY2 years 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
2 years ago
the EXPOSE in the dockerfile doesnt do anything fwiw
2 years ago
what is the host and port you are starting your server on?
2 years ago
okay ill try to spin up a wish test
2 years ago
yep doesnt work, looks like this wont be something you will be able to host on railway unfortunately
2 years ago
no problem!
2 years ago
I wonder if someone from staff can take a look at this and give more information about this 