Results 1 to 7 of 7
Discuss OpenSSH problem at the iPhone "2G" (Rev. 1) - Hackint0sh.org; Alright...here's the problem... I'm trying to uninstall OpenSSH on 1.1.1 because it's not working. I ...
  1. #1
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default OpenSSH problem

    Alright...here's the problem...

    I'm trying to uninstall OpenSSH on 1.1.1 because it's not working. I go into the installer app, click to uninstall openSSH, but it gives me an error saying:

    Main script execution failed!

    Any ideas how to uninstall it and reinstall it so i can get it working?

    thanks


  2. #2
    Senior Professional Array tetsu's Avatar

    Join Date
    Sep 2007
    Posts
    387
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    26

    Default

    do you have bsd installed?
    Best jailbreak solution Carnaval by brasuco! Keep on the great work iphone dev team!
    now at version 0.7 download it here or here
    my blog http://blog.sposito.org

  3. #3
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    yes, bsd is installed.

    I read in a dif post to delete dropbear stuff, so i deleted that, and then tried reuninstalling, still won't work

  4. #4
    Professional Array

    Join Date
    Sep 2007
    Posts
    57
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    8

    Default

    You might have to reinstall openSSH.

    goto /private/var/root/Library/Installer
    there is a file called LocalPackages.plist
    make a backup of it.
    open it and find the entry for openSSH and remove it.

    it should look something like this

    <dict>
    <key>bundleIdentifier</key>
    <string>org.smxy.iphone-apps.OpenSSH</string>
    <key>category</key>
    <string>System</string>
    <key>contact</key>
    <string>ste@psmxy.org</string>
    <key>date</key>
    <string>1191198310</string>
    <key>description</key>
    <string>OpenSSH Server &amp; Client</string>
    <key>location</key>
    <string>http://psmxy.org/iphone-apps/zips4/openssh-4.6p1-1.zip</string>
    <key>maintainer</key>
    <string>Ste</string>
    <key>name</key>
    <string>OpenSSH</string>
    <key>scripts</key>
    <dict>
    <key>install</key>
    <array>
    <array>
    <string>CopyPath</string>
    <string>Library</string>
    <string>/Library</string>
    </array>
    <array>
    <string>CopyPath</string>
    <string>etc</string>
    <string>/etc</string>
    </array>
    <array>
    <string>CopyPath</string>
    <string>usr</string>
    <string>/usr</string>
    </array>
    <array>
    <string>Exec</string>
    <string>/bin/launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist</string>
    </array>
    <array>
    <string>Notice</string>
    <string>Your first login will take 30-35 seconds, while the host keys are being generated.</string>
    </array>
    </array>
    <key>preflight</key>
    <array>
    <array>
    <string>IfNot</string>
    <array>
    <array>
    <string>InstalledPackage</string>
    <string>com.natetrue.iphone.iphone_binkit</string>
    </array>
    </array>
    <array>
    <array>
    <string>AbortOperation</string>
    <string>You must install the BSD Subsystem package first.</string>
    </array>
    </array>
    </array>
    </array>
    <key>uninstall</key>
    <array>
    <array>
    <string>Exec</string>
    <string>/bin/launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist</string>
    </array>
    <array>
    <string>RemovePath</string>
    <string>/etc/ssh_config</string>
    <string>/etc/sshd_config</string>
    <string>/Library/LaunchDaemons/com.openssh.sshd.plist</string>
    <string>/usr/bin/scp</string>
    <string>/usr/bin/sftp</string>
    <string>/usr/bin/ssh</string>
    <string>/usr/bin/ssh-add</string>
    <string>/usr/bin/ssh-agent</string>
    <string>/usr/bin/ssh-keygen</string>
    <string>/usr/bin/ssh-keyscan</string>
    <string>/usr/libexec/sftp-server</string>
    <string>/usr/libexec/ssh-keysign</string>
    <string>/usr/libexec/ssh-rand-helper</string>
    <string>/usr/libexec/sshd-keygen-wrapper</string>
    <string>/usr/sbin/sshd</string>
    </array>
    <array>
    <string>RemovePath</string>
    <string>/etc/ssh_host_key</string>
    <string>/etc/ssh_host_key.pub</string>
    <string>/etc/ssh_host_rsa_key</string>
    <string>/etc/ssh_host_rsa_key.pub</string>
    <string>/etc/ssh_host_dsa_key</string>
    <string>/etc/ssh_host_dsa_key.pub</string>
    </array>
    </array>
    <key>update</key>
    <array>
    <array>
    <string>Notice</string>
    <string>Please exit Installer and turn your iPhone off and on, after this update finishes.</string>
    </array>
    <array>
    <string>RemovePath</string>
    <string>/etc/ssh2</string>
    <string>/System/Library/LaunchDaemons/com.sshd.plist</string>
    <string>/usr/bin/scp</string>
    <string>/usr/bin/scp2</string>
    <string>/usr/bin/sftp-server2</string>
    <string>/usr/bin/sftp</string>
    <string>/usr/bin/sftp2</string>
    <string>/usr/bin/ssh-add2</string>
    <string>/usr/bin/ssh-agent2</string>
    <string>/usr/bin/ssh-keygen2</string>
    <string>/usr/bin/ssh-probe2</string>
    <string>/usr/bin/ssh-signer2</string>
    <string>/usr/bin/ssh</string>
    <string>/usr/bin/ssh2</string>
    <string>/usr/bin/sshd2</string>
    <string>/usr/bin/scp1</string>
    </array>
    <array>
    <string>CopyPath</string>
    <string>Library</string>
    <string>/Library</string>
    </array>
    <array>
    <string>CopyPath</string>
    <string>etc</string>
    <string>/etc</string>
    </array>
    <array>
    <string>CopyPath</string>
    <string>usr</string>
    <string>/usr</string>
    </array>
    </array>
    </dict>
    <key>size</key>
    <string>713039</string>
    <key>source</key>
    <string>http://psmxy.org/iphone-apps/</string>
    <key>url</key>
    <string>http://psmxy.org/iphone-apps/info/OpenSSH.html</string>
    <key>version</key>
    <string>4.6p1-1</string>
    </dict>
    Then you should be able to reinstall openSSH.

    Note: You might have to exit Installer or restart your phone.

    USE AT YOUR OWN RISK

  5. #5
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    well...how do i get to that file if i can't ssh into my phone?

    i have a pc btw...not a mac...


  6. #6
    Professional Array

    Join Date
    Sep 2007
    Posts
    57
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    8

    Default

    use iphuc.

    The commands you need to know are putfile & getfile which are pretty self explanatory
    Last edited by hummer360; 11-05-2007 at 08:04 AM. Reason: typo

  7. #7
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    alright...will give it a shot...thnx a lot man

 

 

Similar Threads

  1. [Pwnagetool] OpenSSH problem
    By boz in forum PwnageTool
    Replies: 13
    Last Post: 01-05-2009, 02:11 AM
  2. [1.1.3 OpenSSH] Problem keeping SSH on/off with Services.app
    By skier0178 in forum Free Toolchain Software
    Replies: 7
    Last Post: 03-03-2008, 01:21 PM
  3. [1.1.3] ziphone openssh / terminal problem
    By MobileSuperDude in forum iPhone "2G" (Rev. 1)
    Replies: 5
    Last Post: 02-18-2008, 06:01 AM
  4. [1.1.1][1.1.1 OTB][Problem][OpenSSH not in Installer->System]
    By vermsky in forum iPhone "2G" (Rev. 1)
    Replies: 2
    Last Post: 01-24-2008, 02:20 AM
  5. OpenSSH Problem on Mac, Please Help
    By nickchooka in forum iPhone "2G" (Rev. 1)
    Replies: 0
    Last Post: 10-22-2007, 02:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 07:30 PM.
twitter, follow us!