Please help with commands of How to shutdown reboot a remote linux machine?

2 answers, votes, 1039 views
Visitor's picture
asked by Visitor
2 years 4 weeks ago



2 Answers

Answer

Connect to the remote machine using ssh and issue the following command
 
to shutdown the machine
 
sudo shutdown -h now
 
to restart the machine
 
sudo shutdown -r now

Visitor's picture
answer by Visitor
2 years 4 weeks ago
  • ssh -lroot <remotepc> shutdown -h now

    - Visitor 2 years 3 weeks ago
  • worked for me, thanks.

    - Visitor 2 years 4 weeks ago
  • Answer

    You could also try these commands:
    1.For reboot:               
    reboot
    2.For shutdown:           
    init 0
    poweroff
     
     

    alexandrug's picture
    answer by Alex
    2 years 5 days ago

    Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

    Poll

    Favorite desktop environment?: