0

I'm connected through SSH to a machine running Xubuntu, where I'm not sudoed. I would like to somehow restart the OS there, because I'm having troubles with Remote Desktop access to the same machine, hopefully that fixes it.

What could I do, and how?

I'm running Ubuntu on Windows 10 to SSH.

6
  • 2
    systemctl reboot should work – Rachael Dawn May 8 at 12:41
  • Will this reboot Linux for all the users who SSH with ssh specific_user@shared_domain ? @Rachael Dawn – warm_fish May 8 at 12:45
  • 1
    It'll reboot the whole machine – Rachael Dawn May 8 at 12:47
  • 3
    If you are not an admin on that remote machine ("I'm not sudoed"), then it's unlikely that you have permission to reboot it...or to do anything else that would fix your connection problem. Ask an admin on that machine for assistance. – user535733 May 8 at 12:47
  • 1
    If you don't have sudo privileges on the server there is no way you should be able to reboot the server and crash all users' work. If it's your own server then you should give yourself sudo privileges but then you wouldn't be asking this question in the first place. Even if I could figure out a way to reboot a server and crash all the users connected, I wouldn't post the answer. – WinEunuuchs2Unix May 8 at 16:00
0

I don't think there is a way to reboot a system without sudo or physical access. However, I think you can reboot from a GUI. If you are using x11 on the server, first enable x11 forwarding in your ssh config file. Then you can follow this guide on your windows machine and it should work. You might need to install the xauth package so that might be a problem if you don't have sudo access.

1
  • and even if you can't shut down this way it should allow you to have a remote desktop. – 404galore May 11 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.