brian9271 macrumors 6502 Original poster Oct 28, 2008 #1 Hey there, I was wondering if I could shut down my Macbook remotely using terminal, so lets say I'm using my friends Macbook at his place, then I type my Ip Address into terminal and I shut it down, what commands would I need to type?
Hey there, I was wondering if I could shut down my Macbook remotely using terminal, so lets say I'm using my friends Macbook at his place, then I type my Ip Address into terminal and I shut it down, what commands would I need to type?
belvdr macrumors 603 Oct 28, 2008 #2 Do a man on shutdown in terminal: Code: man shutdown Looks like: Code: shutdown -h now will do the trick.
Do a man on shutdown in terminal: Code: man shutdown Looks like: Code: shutdown -h now will do the trick.
saltyzoo macrumors 65816 Oct 28, 2008 #3 belvdr said: Do a man on shutdown in terminal: Code: man shutdown Looks like: Code: shutdown -h now will do the trick. Click to expand... After you use ssh to log into your computer.
belvdr said: Do a man on shutdown in terminal: Code: man shutdown Looks like: Code: shutdown -h now will do the trick. Click to expand... After you use ssh to log into your computer.
belvdr macrumors 603 Oct 28, 2008 #4 saltyzoo said: After you use ssh to log into your computer. Click to expand... Figured he knew that already, based on his question.
saltyzoo said: After you use ssh to log into your computer. Click to expand... Figured he knew that already, based on his question.
brian9271 macrumors 6502 Original poster Oct 28, 2008 #5 belvdr said: Figured he knew that already, based on his question. Click to expand... Uh, no, not really, where do I type my Ip Address in in order to shutdown my Mac?
belvdr said: Figured he knew that already, based on his question. Click to expand... Uh, no, not really, where do I type my Ip Address in in order to shutdown my Mac?
Cromulent macrumors 604 Oct 29, 2008 #6 brian9271 said: Uh, no, not really, where do I type my Ip Address in in order to shutdown my Mac? Click to expand... ssh username@IPAddress sudo shutdown -h now job done.
brian9271 said: Uh, no, not really, where do I type my Ip Address in in order to shutdown my Mac? Click to expand... ssh username@IPAddress sudo shutdown -h now job done.
brian9271 macrumors 6502 Original poster Oct 29, 2008 #7 Cromulent said: ssh username@IPAddress sudo shutdown -h now job done. Click to expand... Thanks, what's your username@IPAddress now? LOL, kidding 😉
Cromulent said: ssh username@IPAddress sudo shutdown -h now job done. Click to expand... Thanks, what's your username@IPAddress now? LOL, kidding 😉
Achraf EA macrumors newbie Dec 7, 2016 #9 saltyzoo said: After you use ssh to log into your computer. Click to expand... [doublepost=1481151036][/doublepost]and how do we do that ?
saltyzoo said: After you use ssh to log into your computer. Click to expand... [doublepost=1481151036][/doublepost]and how do we do that ?
belvdr macrumors 603 Dec 7, 2016 #10 Use the ssh client from Terminal to connect: Code: ssh <username>@<IP or hostname> Reactions: satcomer
MacsRgr8 macrumors G3 Jan 9, 2017 #11 Don't forget to "allow" Remote Login" (SSH) first by enabling that in the System Prefs - Sharing tab. As you will understand by default remote login is off. Would be a HUGE security risk if it is left on without a very strong password!
Don't forget to "allow" Remote Login" (SSH) first by enabling that in the System Prefs - Sharing tab. As you will understand by default remote login is off. Would be a HUGE security risk if it is left on without a very strong password!