7 months ago
I need public key to accept SSH/SCP connection from local remote to server (railway).
I don't know where to find it.
Railway looks like has not a terminal or a manager directory
Help me please, because i need to integrate the production database with local database, coping datas from server to local remote.
3 Replies
7 months ago
There isn't a way to shell into the deployment, and thus there is no public keys.
What you would want to do is use the Railway CLI with railway run
This will run the command locally with the linked service's variables.
7 months ago
i did try use Railway CLI, but there aren't specify commands to do it. For example:
scp -o StrictHostKeyChecking=accept-new {LOCAL_DB} {REMOTE_HOST}:{REMOTE_BACKUP}"
This is command that i wish use to Push, from local_db to prod_db.
scp -o StrictHostKeyChecking=accept-new {REMOTE_HOST}:{REMOTE_BACKUP} {LOCAL_DB}
And this command to Pull, from prod_db to local_db.
evently, i get this: "Permission denied (publickey)"
7 months ago
Sorry but there is no way to directly SSH into the deployment, you will have to import the data another way without SSH.
Status changed to Closed brody • 7 months ago