Change Valheim server password
I set an absurdly long overkill password on my valheim server. Does anyone know how I can go about changing it. I am pretty comfy with CLI.
2 Replies
watrick
Linode Staff
I can think of a couple of passwords you're encountering, and it wasn't clear which one you'd like to change. Maybe this is because I'm not familiar with Valheim myself. Anyway, here are some links for changing multiple different passwords:
bshoemaker
Linode Staff
To change your Valheim server password:
Navigate here:
/home/$USER/lgsm/config-lgsm/vhserver/vhserver.cfg
Open vhserver.cfg
in your favorite text editor.
This is the line to update with your new password:
serverpassword="your_old_password"
Save the updated file, change back to the main directory, and restart your Valheim server with these commands:
cd
./vhserver restart