1. gecko91's Avatar
    I have this weird problem with my phone. The sshd file in /usr/sbin/ disappears. If I add it again, I can restart the ssh server and use ssh for about 10 seconds before it disappears again. Anyone seen this before?
    2010-06-08 11:05 PM
  2. gecko91's Avatar
    Ok, even if you don't believe this is really a problem I have seen it on 3 iPhones now. So here is my hack to fix it.

    Get the sshd file from someone. It's at /usr/sbin/sshd. Or download it from here. Put it at /usr/sbin/ and change the name to _sshd.

    The other two files that have to be changed are:

    /usr/libexec/sshd-keygen-wrapper
    Change the last line to:
    Code:
    exec /usr/sbin/_sshd [email protected]
    /Library/LaunchDaemons/com.openssh.sshd.plist
    Change line 14 to:
    Code:
    <array>
    	<string>/usr/sbin/_sshd</string>
    	<string>-i</string>
    </array>
    Restart SSH with the SBSettings toggle and you are good to go!
    2010-06-15 06:29 AM
LINK TO POST COPIED TO CLIPBOARD