How to shutdown linux machine from remote location

Local machine IP address: 192.168.0.77
Remote machine IP address: 192.168.0.44

Command Syntax:
[root@server ~]#ssh root@remote-machine-ip /sbin/shutdown -h now

[root@server ~]# ssh root@192.168.0.44 /sbin/shutdown -h now

In similar you can run command to create directory:
[root@server ~]# ssh root@192.168.0.44 /bin/mkdir  software

shutdown remote server in 10 minutes for server maintenance

[root@server ~]# ssh root@192.168.0.44
[root@server ~]# shutdown -h +10 Ram upgrades.


#######Thanks for Visiting ####################
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment