R
Runpod3mo ago
pmlakner

Persist user with network volume

I'm trying to set up runpod to be used as a development environment where I can easily move my environment across different GPU's. Basically I am creating a container that creates a user and then I am mounting a network volume in the users home directory. I want to be able to login into my git, setup vscode server etc. all within this mounted user's volume so every time i start a new pod its all already there and I dont have to repeat this process every time. The problem I am running into is that I can't ssh over exposed TCP (necessary for vscode to connect) even after copying the public key into ~/.ssh/authorized_keys. Note that it does work if I don't use a mounted volume, in that case i can add my public key into the user's keys and then I can log in via ssh over exposed TCP. But that obviously doesn't solve my problem because on shutdown i would have to copy it again as nothing persists in the users home directory. If anyone has any experience achieving something similar let me know
1 Reply
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?