Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sunscreem's avatar

Any tips on rebooting remote servers and/or password managers?

I'm now looking after a few digital ocean servers and occasionally I need to reboot one of them remotely.

I'm using forge and at present I have only added keys for my main development PC. I connect with gitBash. I also keep the su passwords in a secure,but separate, file.

If a server needs rebooted I therefore have to be physically on my dev PC or I have to use something like teamviewer to connect to it. Its a pain. I feel like there should be a simpler solution?

Also - possibly related - are there such things as password managers that work with gitbash (or similar) on windows 10?

0 likes
5 replies
bashy's avatar

Why not use SSH keys where you are?

Maybe a VPN to connect to so you can do it via that IP?

1 like
sunscreem's avatar

I was thinking along those lines. Would it be a daft idea to have access via, say, my phone?

ohffs's avatar

You could set up a box which acts as a bastion which in turn has password-protected keys on it to let you ssh to your other servers. That way you can allow logins from your phone/desktop/whatever to that one box rather than allowing access to all your servers from $where-ever and having to copy lots of keys around.

I've used streisand a few times for things like that if it's any help.

1 like
ryan_digitalocean's avatar
Level 1

Hey, I'm a Community Manager @ DO. Rebooting should not require you to actually log into your droplet. The API supports rebooting and a soft reboot is sent before anything is forcefully shut down. You can control your droplet via the API using one of many 3rd party apps . This will allow you to remotely reboot your droplet(s) from your phone wherever you are.

1 like
sunscreem's avatar

Thank you everyone - lots of good advice as usual :)

Please or to participate in this conversation.