A Valheim server.
-
Setup ssh for another user and add them to sudoers
sudo adduser ola sudo adduser ola sudogenerate and save password somewhere. Send to them privately
-
Ask for their public SSH key
-
Add the key to their authorized_keys
sudo su ola cd mkdir -p .ssh touch .ssh/authorized_keys chmod 0600 .ssh/authorized_keys vi .ssh/authorized_keysThen copy the public key into that file and save and exit
-
From your local machine, SSH into the valheim server (using ola as example)
-
stop the valheim server
sudo service valheim stop -
run the update script
sudo su -c '/home/steam/Valheim/update.sh' steam -
start the valheim server
sudo service valheim start -
To see the status of the server, run
sudo service valheim status -
To see live logs, run
sudo journalctl -u valheim -b -f
World saves are located in /home/steam/.config/unity3d/IronGate/Valheim/worlds_local/.
To copy the latest save file to your local machine, perform the following steps.
-
SSH into the server using your personal account (see above)
-
Copy the latest save files into your home directory
sudo cp /home/steam/.config/unity3d/IronGate/Valheim/worlds_local/Ladlandia.{fwl,db} ~/ -
From your local machine, run the following
scp [email protected]:~/Ladlandia.{fwl,db} ./ -
You should now see two new files in your local.
Ladlandia.db, andLadlandia.fwl.