iPhone Openssh without sbsetting

Discussion in 'Jailbreaks and iOS Hacks' started by Sseguin, Jan 4, 2014.

  1. Sseguin macrumors regular

    Joined:
    Dec 6, 2009
    #1
    How can I toggle it on and off without sbdettings? Any other tweak work?
     
  2. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #2
    "Toggle SSH" works flawlessly - at least on 32bit devices.
     
  3. Sseguin thread starter macrumors regular

    Joined:
    Dec 6, 2009
  4. alkalifly macrumors regular

    alkalifly

    Joined:
    Apr 13, 2004
  5. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #5
    Why would you want to turn off SSH? It's lightweight and it could save your jailbreak in a pinch. I leave it in all the time just in case, and it has saved my ass on at least one occasion.
     
  6. hafr macrumors 68030

    Joined:
    Sep 21, 2011
    #6
    You can access your phone's filesystem using a cable as well, without the need of keeping SSH open.
     
  7. iWeekend macrumors regular

    Joined:
    Nov 28, 2012
    #7
    Please explain, as I was under the impression you/me needed SSH to get (s)FTP going to the phone ... at least that is how I have done it
     
  8. hafr macrumors 68030

    Joined:
    Sep 21, 2011
    #8
    On your iDevice: get afc2add from Cydia
    On you computer: get iExplorer

    Connect iDevice to computer, open iExplorer - full access :)
     
  9. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #9
    Sigh. I forget that most of you people have no idea what SSH is really for.
     
  10. hafr macrumors 68030

    Joined:
    Sep 21, 2011
    #10
    "Sigh". When did I compare root access to the file system to a shell? I've never needed to run commands on my phones in order to save a jailbreak, access to the filesystem was all that was needed.
     
  11. hackthatphone macrumors 68000

    hackthatphone

    Joined:
    Jul 28, 2010
    #11
    I would want to turn off ssh to guarantee refusal of any unauthorized log ins to my live file system.
     
  12. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #12
    Simply change the password and port number. SSH is a wonderful thing to leave on. It does a lot more than file system manipulation. And the file system stuff it can do is much better and advanced than anything you can do via a cable. It can even work in some cases where the AFC service doesn't load as its startup position is later whereas OpenSSH's startup is independent from the rest of iOS.
     
  13. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #13
    I have. I have been able to uninstall packages using apt-get uninstall over SSH when the AFC service would not load due to a respring loop. If I had had SSH turned off, I would have lost my jailbreak.

    A strong password will do the same and give you the ability to gain shell access to your phone if you need it. You have changed your root and user passwords, right?
     
  14. hafr macrumors 68030

    Joined:
    Sep 21, 2011
    #14
    I see. Doesn't usbmuxd or similar workarounds work with the newer devices?
     
  15. Sseguin thread starter macrumors regular

    Joined:
    Dec 6, 2009
    #15
    Lots of good info here. But to my initial question, on 5s, anyway to toggle on/off openssh?
     
  16. chambone macrumors 6502a

    chambone

    Joined:
    Dec 24, 2011
    Location:
    Netherlands
    #16
    -edit-
    sorry, didn't read properly
     
  17. Carlanga macrumors 604

    Carlanga

    Joined:
    Nov 5, 2009
    #17
    That is just SSH via USB and needs you to download Python also if I remember correctly.

    ----------

    Wait for updates I guess
     
  18. hafr macrumors 68030

    Joined:
    Sep 21, 2011
    #18
    I know, the point was that with physical access to the device one wouldn't need to have SSH enabled "just in case".
     
  19. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #19
    Often physical access isn't enough. In some cases, the iPhone's AFC service restarts before you can do anything to fix it or it doesn't start at all. Having the OpenSSH daemon running in provides a better route as it is independent from the Springboard and AFC service. Still a very good thing to have around and installed on one's device. Then there's the problem that may arise if you're using a computer than hasn't been trusted with iOS. It would refuse all connections and you wouldn't be able to connect at all.
     
  20. hackthatphone macrumors 68000

    hackthatphone

    Joined:
    Jul 28, 2010
    #20
    I did change both of my passwords. Just file me under paranoia.
     
  21. darricksailo macrumors 601

    darricksailo

    Joined:
    Dec 18, 2012
    #21
    you guys seem to know a lot about SSH, mind if I ask you a few questions?

    Are there other forms of SSHing to your device?

    How would you SSH into the device without the device being connected to wifi? It seems afc is more reliable in this case (assuming the afc service starts up) since you can always connect a cable to access the device (say for recovering pictures before doing a DFU restore)

    Even if the SSH service starts up, it doesn't seem like you can connect to the device if it doesn't connect to wifi

    as with the others, the main reason I use SSH or the AFC service is to access the file system so I apologize if they aren't meant to used in this way
     
  22. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #22
    If the device is an A4 or older device, you can access it via a SSH ramdisk over USB. Really nifty little things. You can access it over USB through usbmuxd using tcprelay, part of the Linux distribution of usbmuxd. It's a python script. usbmuxd isn't hooked into Springboard like AFC is. Because of this, it'll still work even when Springboard is crashing and trying to load. Then there's advanced stuff like auto-reverse SSH tunneling through the cellular network, but that's not really used very much due to battery drain.
     
  23. thelatinist macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #23
    It's not that they aren't meant to be used that way; most such protocols can be used for file transfer. It's just that it can be used for so much more. SSH can give you shell access to your phone so that you can run any unix command, install and uninstall packages, repair permissions, etc. When I hear someone talk about SSH, file transfer is the last thing I'm thinking about.
     
  24. spamdumpster macrumors 6502a

    Joined:
    Jan 22, 2008
    #24
    There's a flipswitch switch called "SSH Toggle" that works on my 5s. In the ModMyI repo. Requires Flipswitch, obviously. I use it with FlipControlCenter.
     
  25. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #25
    Thanks! Wait...Are you sure it's not called SSH Switch for Flipswitch?

    Didn't find that one yet. Still, not sure if I'd use the toggle now that both passwords are changed. My memory fails me...SSH comes on with every reboot, correct?
     

Share This Page