Ssh into a sleeping computer

How can I get my G5 to wake up when I attempt to ssh into it from a remote MacBook Pro? I have both wake options checked in the Energy Saver tab of System Preferences (i.e. wake when the modem detects a ring and wake for ethernet network administrator access) and have tried to login as both the administrator and Joe User, but to no avail. I expect it's a dumb newbie problem, but can't figure it out. Any advice would be greatly appreciated!
PS Apologies if this is posted in the wrong place: I couln't decide if it was better here or in the Network forum...
G5, MacBook Pro   Mac OS X (10.4.7)  

You can't wake a sleeping machine with ssh. You have to send a magical WakeOnLan packet. There are utilities for doing this sort of thing:
http://www.apple.com/downloads/macosx/networking_security/wakeonlan.html
Also, this only works with hard-wire Ethernet, not wireless.

Similar Messages

  • Hi Guys 'n' Gals! I have a problem with my computer going into 'Display Sleep' mode and it actually goes into full sleep mode. anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never go into computer sleep

    Hi Guys 'n' Gals!
    I have a problem with my computer not going into 'Display Sleep' mode but actually goes into full Computer Sleep mode. Anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never' go into 'Computer Sleep' within the 'energy saving' section!
    Any ideas guys?
    Miffa!

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the  appropriate method.

  • I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.  I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion.

    I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.
    I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
    I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
    Is there anyone who can give me some pointers ?

    Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
    For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
    To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
    At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
    Good luck!

  • After updating my mac, I can no longer close the lid without it going into a sleep mode, that I can only wake by powering off.

    Ever since I have updated my Macbook Pro to the newest version of OS, it will go into a sleep mode when I close the lid that I can only wake with powering off the entire computer. I used to be able to close the lid for the night, open it in the morning, and it would be like I never even left it overnight. Now I try to wake it up with pushing everything possibe. Is this new to the update? I even tried to set the settings to "never sleep". Help!

    Try Reset SMC.
    http://support.apple.com/kb/HT3964
    Choose the method for:
    'Resetting SMC on portables with a battery you should not remove on your own'.
    Hope this helps.

  • Help: Macbook goes into deep sleep instead of sleeping

    Any time my Mac is supposed to go into sleep, like when I leave it alone for 15 mins or close the lid, it goes into deep sleep (hibernates). How do I fix this?
    Also, it started happening after I changed the starup disk from Windows to OS X through the boot camp control panel in Windows.

    Just reset the SMB following these instructions: http://support.apple.com/kb/HT3964 and still having the same problem. However I realized two key things:
    The computer goes into Deep Sleep mode whenever I tell it to Sleep (Even if I use the Sleep button in the Apple menu)
    The above only happens when the power adaptor is plugged in. When running on batteries Sleep seems to work properly
    While typing this up I just realized that a widget I have called Deep Sleep for dashboard might be causing my problems, and sure enough... it is. Apparently there is a setting on there that lets you make your Mac's "regular" sleep mode Deep Sleep and I probably turned this on without realizing it. For anyone who's reading this I'll try to keep you posted on if this fixed the problem or not... if I don't post anything else on here you can assume it's fixed. Watch out if you use the Deep Sleep widget
    Message was edited by: musicmannn

  • Can ssh into client iMac but cannot mount home directory ...

    I've got a server running 10.4.11 and a bunch of client iMacs (10.5.n). If I ssh into a client iMac it lets me log in but cannot mount my home directory (which lives on the server). Obviously ssh is getting my credentials from the server but isn't getting (or cannot get) the information to mount my disk. If I log in through the gui on the client it all works fine. I suspect this is less of an error and more of a design. Is there a way to get the clients to mount my home when logging in with ssh? If not then Apple presumably has a reason for disallowing this behaviour. Is there a way around this? Perhaps with mount_afp?
    We want to be able to log into many client iMacs at once to run computations on them. Eventually we want to do this on a suite of XServes and XGrid. This is all very easy with linux and nfs and I was expecting the same sort of ability through OS X. I know that I can export everything from the server with nfs (though that may not solve my problem) but I only have the one system and multiple users and I can't really experiment while they are connected.
    Suggestions? Comments? If there are obvious examples of this elsewhere please point me toward them.

    Well it's never worked that way for me. Do you actually use this method to log in?
    I've gone through all of the server logs, watching what gets added as I log on to a client. I don't see anything there that suggests it is even attempting to mount the home directory. I also watched on the client and didn't see any errors. When I ssh into a client I see the following message on the terminal, "Could not chdir to home directory /Network/Servers/server.some.place/Volumes/R1/UsersR1/username: Unknown error: 118" This suggests that the client knows where my home should be but doesn't know how to mount it.
    I have enabled the basic setup on my server. User accounts have Home URLs like "afp://server.some.place/UsersR1/username" and Full Paths like "/Network/Servers/server.some.place/Volumes/R1/UsersR1" (R1 is a RAID disk). UsersR1 has been made into a Share Point and Server Admin tells me that the disk "will be automatically mounted using the AFP protocol as /Network/Servers/R1 on client machines". This part doesn't seem to be true as when I log into a client through the GUI the actual path that is mounted as my home is /Network/Servers/server.some.place/R1" (pwd in my home directory returns /Network/Servers/server.some.place/Volumes/R1/UsersR1/username which is a actually rather inconvenient).
    Under the Advanced tab in the Workgroup Manager, Accounts pane, I've got "Allow simultaneous login on managed computers". This seems to work but also seems only to apply to the GUI, that is I can log onto several clients at once.
    How do I ask a client machine what home directory information it is getting from the server for any particular user? Is there some setup on the client machines that will enable automatic mounting of homes through ssh? On the clients, the Directory Utility, which I have used to connect the client to a Directory Server, has a Mounts pane which allows me to "Edit automatic NFS mounts for this computer". I am not exporting any NFS from the server, but perhaps this is the way to make it work?
    Perhaps what I want to requires Kerberos? I don't have that enabled.
    When I have done this on a cluster of linux machines I exported the home directory from the server with NFS (exportfs) and then, using NIS and automount on the clients it "just worked". It was very simple. If it is supposed to work with Macs and OS X, it may be simple but it's not obvious.

  • Applescript to ssh into router and reboot

    I'm trying to write an applescript that will ssh into my router and reboot the router.  I would like this so that my wife can simply execute an automator file and it will restart the router without her having to unplug the router.  I've got the following but it's not logging into the router. Can anyone offer suggestions one what I'm doing wrong.  Thanks.

    Is this an 'expect' script?
    Or are you trying to send these commands to the router to be executed?
    If sending to the router you could put them in a file and then have ssh read the file contents and send it to the router
    ssh -options [email protected] <file.with.cmds.to.be.executed.on.router
    If this is an expect script, have you run this from a regular terminal session?
    If you are into blind faith, you could just send the commands you expect to work and not bother looking at what is returned
    ( sleep 2
      echo 12345
      sleep 4
      echo reboot
      sleep 10
      send exit
    ) | ssh [email protected]
    The sleep times are assumes to give the router more than enough time to return the expected prompt.  Adjust accordingly.
    This is "Rude and Crude", but would it work?

  • My (2008) macbook pro, running 10.5.8 runs for about 30 seconds and then goes into deep sleep mode.  After significant difficulty awakening, it runs for 30 seconds and....start repeating here.  It did this once before about a year ago.

    .....and then goes into deep sleep mode.  When it (finally) awakens....it runs for about 30 seconds and.....start repeating here.
    And yes, I've shut dwn and restarted multiple times, rebooted in terminal mode and run fsck, rebooted and reset the parameter ram, yadda-yadda......
    Anybdy got any ideas?

    Power or other problems related to unexpected system sleep, shutdown, lights or fans call for an SMC reset. Read all the steps.
    Before Resetting the SMC
    Try each of the following steps in this order before you reset the SMC. Test the issue after completing each troubleshooting step to determine if the issue still occurs.
    Press Command + Option + Escape to force quit any application that is not responding.
    Put your Mac to sleep by choosing the Apple () menu from the upper-left menu bar and then choosing Sleep. Wake the computer after it has gone to sleep.
    Restart your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Restart.
    Shut down your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Shut Down.
    Resetting the SMC on Mac portables with a battery you can remove
    Shut down the computer.
    Disconnect the MagSafe power adapter from the computer, if it's connected.
    Remove the battery (to remove the battery - click here: MacBook or MacBook Pro).
    Press and hold the power button for 5 seconds.
    Release the power button.
    Reconnect the battery and MagSafe power adapter.
    Press the power button to turn on the computer.
    Still having problems? Replace steps 6 and 7 with the following:
    Reconnect just the MagSafe power adapter.
    Press the power button to turn on the computer,
    Then reconnect the battery.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if it's not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time. The power adapter indicator light may cycle off / on once.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • I would like to combine multiple profiles into a new computer. Which are the most important folder or files to migrate?

    The user profile in my old computer somehow became corrupted and I can no longer access it to log on. Unfortunately I was not aware of the Firefox sync feature at the time. I used a new profile and had to start from scratch to save new bookmarks and extensions/plugins. I did set up Firefox sync for this new profile. Now I have a brand new computer and desire to migrate the bookmarks to this new computer, including the original bookmarks in the old computer, as well as the bookmarks in the second profile. While I have located the profiles folder for each profile in my old computer (as well as extensions and plugin folders), the content of this folder is daunting. I would like to know which are the minimal folders I should select to migrate and would it be safe to simply copy and paste over the entire folder? Please note that I have also added new bookmarks into my new computer which I would not like erased. I hope these details are not convoluted.

    Firefox has two methods of bringing in bookmarks from another Firefox profile:
    * Restore a backup (JSON files in the bookmarkbackups folder): this completely replaces what you have, so is not the first step
    * Import from an HTML file: this is additive and will create an Imported Bookmarks folder or add them under Unsorted Bookmarks
    Restore is best if you tag your bookmarks because the JSON format preserves tags. If tags are not important, then it's easier.
    What I suggest is:
    (1) Export your current bookmarks to the HTML format; you can reimport these later. See: [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]. Open the file in Firefox (it's a web page) to make sure it looks complete before proceed.
    Next, get the bookmarkbackups folders from each of your old profiles that you want to restore, and look for the most-complete-looking JSON files (they will have the most recent dates and largest number of bookmarks indicated in the file name). Proceed from the smallest set to the largest, or oldest to newest; basically, restore the most important one last.
    (2) Restore a backup, then export to HTML. This article has the steps for a restore: [[Restore bookmarks from backup or move them to another computer]]. Then export to HTML and check for completeness.
    (3) Repeat #2 until you get to the last/most important restore. You don't need to export that one.
    (4) Import the HTML files you've made throughout the process.
    (5) In the Library dialog, reorganize. Firefox doesn't have a deduplicator, but you might find one or more extensions to do the job on the Add-ons site if you find a lot of overlap.
    Make sense?

  • My iPod touch is synced to my old Mac and I have a new PC. Now when I plug my iPod into the new computer it will make the connection sound, but will not show up in my iTunes. I do not care to have the content copied over. Any suggestions?

    My iPod touch is synced to my old Mac and I have a new PC. Now when I plug my iPod into the new computer it will make the connection sound, but will not show up in my iTunes. I do not care to have the content copied over. Any suggestions?

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    I am so sorry for you and your situation. Were you using iCloud photostream?
    Otherwise I do not see any chance for your precious photos.
    Congrats anyway on the little darling!

  • I have had my iPhone 4 for a year and have only plugged it into my friends computer when I first got it, and now I just purchase my music right on my phone, so now I'm getting a new phone so if I plug it into my comp will anythin get deleted?

    I have had my iPhone 4 for a year and have only plugged it into my friends computer when I first got it, and now I just purchase my music right on my phone, so now I'm getting a new phone and want to back up my music, photos, etc so if I plug this phone into my computer will anything get deleted off my phone?

    See Here:
    IOS Sync Content to Computer  
    http://support.apple.com/kb/HT1296
    And have a Look here Before you do Anything...
    http://www.apple.com/support/iphone/getstarted/
    This might be Useful:
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I have just purchased a new desk top. Would like to get my itunes into my new computer. I have downloaded it into my new computer, but how do I get the tunes I have from my other computer into this itunes in my new computer? Thanks

    I have just purchased a new desk top. I would like to get my itunes into my new computer. I have downloaded the itunes program.  How do I transfer the tunes I have in my itunes account into this computer?  I know I have done it before, but can't seem to find how to do it.  Thanks.

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.

  • HT1329 I wish to transfer all the music on my ipod (synced with my home computer) to my itunes on my work computer. Is this possible? I am concerned if I plug my ipod into the work computer, which has itunes but no music content, that it will automaticall

    I wish to transfer all the music on my ipod (synced with my home computer) to my itunes on my work computer. Is this possible? I am concerned if I plug my ipod into the work computer, which has itunes but no music content, that it will automatically sync and wipe all the content from ipod. Can anyone advise?

    Only if you use a third-party utility such as Phone to PC and only if you use the same Apple ID for your other computer.

  • My original computer that has my itunes account on it no longer works.  I am trying to import my phones itunes settings into my new computer and it is not letting me and I don't want to loose all my photos and music, what do I do?

    My original computer that has my itunes account on it no longer works.  I am trying to import my phones itunes settings into my new computer and it is not letting me and I don't want to loose all my photos and music, what do I do?

    It does not magically appear in a new place.  It will only be where you put it.
    Copy everything from your old computer, or your backup copy of your old computer, to your new one.

Maybe you are looking for

  • My Mid 2010 MacBook Pro will not boot

    My Mid 2010 MacBook Pro will not boot regularly, in safe mode, in recovery mode or from original OS DVD. Is this the logic board? I've tried resetting the SMC and pram numerous times and even tried switching out hdd's to try and do a clean install on

  • I have found a way to organize photos for a slideshow (windows based)

    I had searched for a while for this answer and never came up with exactly what I needed.  My problem was that when I synched photos to my iPad (I have a PC), they wouldn't play in the proper order even though I had numbered all the photos.  Apparentl

  • Probably a daft Mac NOOB question but...

    Is there a way to allocate more RAM/CPU to audio apps? I'm running Logic Pro & I can quite easily overload my system as I use a tonne of plugins in realtime so I can keep them open to edit and automate.. I sort-of design my sound as Im working & i li

  • Session Variable in a Command Object

    Hi all, How would I insert a session variable in place of Request.Form variable in the following code: <% Set Command1 = Server.CreateObject ("ADODB.Command") Command1.ActiveConnection = MM_skilledovertime_STRING Command1.CommandText = "DELETE FROM E

  • Oracle communicationg integration engine

    Im lost at the moment and not sure where to start but is it possible for oracle to send xml files(that I have created through pl/sql query) to an integration engine?And if it is how do I go about this,this may be a fairly broad area but im hoping som