How Do I Remotely Reboot Linux System?

A remote Linux / UNIX server can be rebooted using following methods:

A) Login to remote server using ssh as root user and use any one of the following syntax:

ssh root@remote-server-ip

OR

ssh root@remote-server-name

When prompted for password please supply remote server root password.

B) Type reboot command as follows:

reboot

You can also save time using the following reboot command over ssh session:
ssh root@202.54.10.20 reboot
ssh root@webserver.nixcraft.net reboot

Meet the Author

Admin

I like chocolate, gadgets, open source software, photography, traveling and all shades of green colors. I love spending time with fun loving friends and family members. This is my own online journal.

11 comments… add one
  • Art Oct 15, 2008, 2:03 am

    Obviously it’s ssh, not shh

  • nc Nov 5, 2008, 3:30 am

    thanks

  • kashyap Jun 24, 2009, 3:38 am

    is it possible for normal user to reboot like :
    ssh user1@webserver.nixcraft.net sudo reboot
    ??

  • Anonymous Feb 4, 2010, 3:02 am

    yes. If you of course know the root’s password.

  • billy Apr 22, 2010, 9:50 pm

    and are added to sudoers :-P

  • std May 25, 2010, 5:59 am

    just tell me how to login in ssh with ip and root password, i am using putty for login but when http is down not able to login, and other end ip is ping fine.

    pls tell me how i can reboot server myself..

    Regards.
    Yousaf

  • Anonymous Jun 29, 2010, 1:07 pm

    no becaus non user has not permision
    only supur user
    ok

  • Narendra Jun 29, 2010, 1:09 pm

    how to remotliy shutdown linux RHEL 5.0 systems
    i have only system ip not password

  • hany Feb 6, 2011, 9:03 am

    how to restart remotely a hanged up linux server

    i tried ssh root@servername, but with no reply..?

  • victoria Feb 6, 2014, 11:06 pm

    How do I get the GNU GRUB box off my computer??? Everytime I turn on my computer it comes up and I can’t enter ny system at all. Can someone please assist me.

  • geochrys Nov 10, 2014, 8:28 pm

    But if you’re ssh’ing then it’s not a remote reboot.
    is there a way to remotely reboot a server.
    eg.
    server1>reboot -s server2

Leave a Comment