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

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:

To change your Valheim server password:

Navigate here:


Open vhserver.cfg in your favorite text editor.

This is the line to update with your new password:


Save the updated file, change back to the main directory, and restart your Valheim server with these commands:

./vhserver restart


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct