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 ...
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.
white@applejuice:~> ssh email@example.com
Connection to 192.168.2.4 closed.
How can I fix that? Thanks.
i have exactly the same thing. sftp works fine though...
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.
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 firstname.lastname@example.org "/bin/sh -i"
sh-3.2# 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
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.
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).
Originally Posted by gutguido
By smacman in forum Installation
Last Post: 12-19-2008, 03:07 PM
By joyryde in forum iPhone "2G" (Rev. 1)
Last Post: 10-17-2007, 06:12 AM
By email@example.com in forum General
Last Post: 10-09-2007, 08:32 AM