Results 1 to 7 of 7
Discuss SSH stopped working at the General - Hackint0sh.org; I had a successfully unlocked iPhone, but decided to install a MobileTerminal, Term-vt100 and OpenSSH ...
  1. #1
    Rookie Array

    Join Date
    Aug 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default SSH stopped working

    I had a successfully unlocked iPhone, but decided to install a MobileTerminal, Term-vt100 and OpenSSH on it. I'd previously installed Dropbear SSH from INdependence 1.2. Well, I tried to install OpenSSH to use the SSH client from the phone, it worked, however, I lost the ability to connect to the iPhone via SSH - the connection was closed on 22 port. I've deinstalled OpenSSH, deinstalled Dropbear, installed OpenSSH. Nothing worked. I've deinstalled everything, installed Dropbear. It connects, but when I type any single command everything drops again.

    Look:

    white@applejuice:~> ssh root@192.168.2.4
    root@192.168.2.4's password:
    -sh-3.2# ls
    Connection to 192.168.2.4 closed.

    How can I fix that? Thanks.



  2. #2
    Newbie Array

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

    Default

    i have exactly the same thing. sftp works fine though...

  3. #3
    Rookie Array

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

    Default

    I had the same problem after installing both Dropbear SSH via Independence and Open SSH via Installer.app. I ended up restoring and then only reinstalling via Installer.app and everything now works great.

    Thus do not install SSH via independence if you intend to install Open SSH with Installer.app later on.

  4. #4
    Rookie Array

    Join Date
    Aug 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    This sucks, it's got to be simplier way to fix that.

    However, I can get it and work with (and this explains why SFTP works for other guy):

    white@applejuice:~> ssh root@192.168.2.4 "/bin/sh -i"
    root@192.168.2.4's password:
    sh-3.2# ps ax
    ps ax
    PID TT STAT TIME COMMAND
    1 ?? Ss 0:00.32 /sbin/launchd
    12 ?? Ss 0:00.04 /usr/bin/dropbear -F
    13 ?? Ss 0:00.40 /usr/sbin/BTServer
    14 ?? Ss 0:00.62 /System/Library/Frameworks/CoreTelephony.framework/Su
    16 ?? Ss 0:02.75 /System/Library/CoreServices/SpringBoard.app/SpringBo
    17 ?? Ss 0:08.51 /usr/sbin/configd
    18 ?? Ss 0:00.06 /usr/libexec/crashreporterd
    19 ?? Ss 0:00.03 /usr/sbin/cron
    20 ?? Ss 0:00.44 /System/Library/Frameworks/IAP.framework/Support/iapd
    21 ?? Ss 0:00.22 /usr/sbin/mDNSResponder -launchd
    22 ?? Ss 0:00.73 /usr/libexec/lockdownd
    23 ?? Ss 0:00.69 /usr/sbin/syslogd
    25 ?? Ss 0:00.31 /usr/libexec/ptpd -t usb
    26 ?? Ss 0:00.91 /usr/sbin/mediaserverd
    28 ?? Ss 0:00.16 /usr/sbin/notifyd
    32 ?? S 0:00.07 /usr/libexec/afcd --lockdown -d /
    33 ?? S 0:00.43 /Applications/MobilePhone.app/MobilePhone --firstLaun
    34 ?? S 0:01.50 /Applications/MobileMail.app/MobileMail --firstLaunch
    35 ?? Ss 0:00.05 /usr/sbin/update 555 /bin/chmod /bin/sh /usr/bin/drop
    44 ?? Ss 0:01.31 /usr/bin/dropbear -F
    45 ?? S 0:00.06 /bin/sh -i
    46 ?? R 0:00.01 ps ax

    I see /usr/sbin/update in the process list.

    sh-3.2# ls -al /usr/sbin/update
    -r-xr-xr-x 1 root wheel 8924 Sep 18 14:38 /usr/sbin/update

  5. #5
    Senior Professional Array MattCairns's Avatar

    Join Date
    Aug 2007
    Posts
    134
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    I also have the same problem, i think i will have to do a full restore. I have always gotten to get it to work in the past and now it has just stopped working. I think i may have installed both SSH from independence and OpenSSH but im not sure.


  6. #6
    Newbie Array

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

    Default

    Hi, I had the same problem and this is what solved it for me ... hope this works for someone else as well. Cheers.

    In the etc folder of your iPhone there is a master.pswd file. Make a backup. On the line which starts with root:, at the end of it after the bin/, change it to csh so that it reads System Administrator:/var/root:/bin/csh

  7. #7
    Rookie Array

    Join Date
    Aug 2007
    Posts
    22
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by gutguido View Post
    Hi, I had the same problem and this is what solved it for me ... hope this works for someone else as well. Cheers.

    In the etc folder of your iPhone there is a master.pswd file. Make a backup. On the line which starts with root:, at the end of it after the bin/, change it to csh so that it reads System Administrator:/var/root:/bin/csh
    Not a real fix - after restoring everything and going without the Dropbear SSH, but with OpenSSH I originally have the root shell set to /bin/sh and it works. The problem in something else, besides, I feel there is something wrong with other files and they work how they behave, like /usr/sbin/update (which is not /bin/chmod at this moment and it stalls).

 

 

Similar Threads

  1. MobileMe Stopped Working
    By smacman in forum Installation
    Replies: 2
    Last Post: 12-19-2008, 02:07 PM
  2. Replies: 5
    Last Post: 10-17-2007, 06:12 AM
  3. SMS stopped working
    By ashraf@samawi.com in forum General
    Replies: 5
    Last Post: 10-09-2007, 08:32 AM

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 © 2014 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 06:25 PM.
twitter, follow us!