Project not found. Run
railway link
to connect to a project.

duglikespiano
HOBBY

11 days ago

Hi, I am attempting to access to my project's server by ssh.

And I am facing message 'Project not found. Run railway link to connect to a project.' repeatedly.

This is log on my terminal and I think it is connected with my project, service project properly and environment is well designated.

---

suho@SUHOs-PC ~ % railway status                                                        

Project: dugsworks

Environment: production

Service: dugsworks-backend

---

---

suho@SUHOs-PC ~ % railway ssh --project dugsworks --environment production --service dugsworks-backend

Project not found. Run railway link to connect to a project.

---

Maybe there's something I am missing.

Where should I check more?

Solved

7 Replies

10 days ago

Right click your service -> Copy SSH Command

Use that.


Status changed to Awaiting User Response railway[bot] 10 days ago


Status changed to Solved ray-chen 10 days ago


ray-chen

Right click your service -> Copy SSH CommandUse that.

duglikespiano
HOBBY

10 days ago

oh thanks! that works!


Status changed to Awaiting Railway Response railway[bot] 10 days ago


scarpent
HOBBY

10 days ago

With railway ssh and with right-click copy ssh command I'm getting:

Expected welcome message, received: ServerMessage { type: "error", payload: ServerPayload { data: Empty, message: "Could not establish SSH connection to application", code: None } }

railway link and railway login both run successfully, but ssh has been erroring out the past couple of hours.


scarpent

With railway ssh and with right-click copy ssh command I'm getting:Expected welcome message, received: ServerMessage { type: "error", payload: ServerPayload { data: Empty, message: "Could not establish SSH connection to application", code: None } }railway link and railway login both run successfully, but ssh has been erroring out the past couple of hours.

duglikespiano
HOBBY

10 days ago

Oh! It was not erroring out when I tried the right-click copy ssh command

Maybe I tried after the problem has been solved, thanks by the way!


scarpent
HOBBY

10 days ago

Sorry I'm just hijacking your thread for a perhaps related issue. Might be a whole different thing.


scarpent

Sorry I'm just hijacking your thread for a perhaps related issue. Might be a whole different thing.

scarpent
HOBBY

10 days ago

(A redeploy resolved this for me.)


10 days ago

If you've got a separate issue, please make a separate through and we'll merge em


Status changed to Awaiting User Response railway[bot] 10 days ago


Status changed to Solved jake 10 days ago