0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WindowsからMacOSをSSH経由でシャットダウンさせる

Posted at

リモートで作業中に切断され、復旧できなかったときに(仕方なく)再起動する方法を残す。

環境
・Windows10(接続元)
・Mojave10.14.6(接続先)

前提

MacOSは「リモートログイン」の設定(システム環境設定→共有)を行っていること。

作業

・Windows10から下記コマンドを実行する

c:¥>ssh -l (Login) (IPAddress)

途中Yes/Noとパスワードを聞かれる。

・・・
Are you sure you want to continue connecting (yes/no)? yes
Password:(パスワード入力)

ログインしたら、続けて下記のコマンドを実行することでシャットダウン(再起動)する

(host):~ (Login)$ sudo shutdown -r now
Password:(パスワード入力)

成功したら下記メッセージが出る

Shutdown NOW!!
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?