Custom SSH App - Permission denied (publickey)

caxco93
HOBBY

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

caxco93
HOBBY

a year ago

9f559d76-09a2-4ad0-bb72-5be1b756a3c3


a year ago

the custom domains would strictly be for https traffic only, you would need to use tcp proxy instead


caxco93
HOBBY

a year ago

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?


caxco93
HOBBY

a year ago

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?


caxco93
HOBBY

a year ago

0.0.0.0 and 23234


a year ago

okay ill try to spin up a wish test


caxco93
HOBBY

a year ago

thanks I appreciate it


a year ago

yep doesnt work, looks like this wont be something you will be able to host on railway unfortunately


caxco93
HOBBY

a year ago

oh damn thank you very much for trying


a year ago

no problem!


caxco93
HOBBY

a year ago

I wonder if someone from staff can take a look at this and give more information about this