Cannot SSH with my iPhone

Discussion in 'iPhone, iPod & iPad' started by haddad, Apr 7, 2011.

  1. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    Ok, I got a iPhone 3Gs on firmware 4.1 and it is jailbroken, so I am using WinSCP now and I put the following info into WinSCP

    Host Name: (My iPhone's IP Address)
    User Name: root
    Password: alpine
    Port Number: 22
    Private Key File: (I left blank)
    File Protocol: (tried all 3)

    And it never works [​IMG] why??
     
  2. doyama

    doyama GBAtemp Maniac

    Member
    1,288
    3
    Nov 30, 2006
    United States
    What error message do you get when you try to connect?

    Also did you install the ssh package on the iphone?
     
  3. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
  4. dib

    dib GBAtemp Advanced Maniac

    Member
    1,574
    6
    May 1, 2004
    United States
    Have you tried iPhone browser? It's so much simpler than using ssh for most purposes.
     
  5. Joktan

    Joktan GBAtemp Advanced Fan

    Member
    665
    1
    Apr 5, 2010
    United States
    In a big mansion...in Rancoon
    mine will sometimes stop working and its sometimes becasue the ip address is different from the last time i used it.check to make sure you have it right.
     
  6. The Pi

    The Pi Lurker

    Member
    1,638
    67
    Mar 18, 2010
    Scotland
    I used to get that error, basically constant retrying gets passed it.
    It stopped after I saved the password and user though.

    Also, I recommend you change the password aswell:
    when you do get into SSH, Ctrl+T then type "passwd" without quotes, then change the password.
     
  7. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    I have tried re-connecting over 100 times and still same error, and I cannt chage the password if I get inti SSH [​IMG]
     
  8. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,330
    107
    Jun 2, 2007
    United States
    Georgia
    This is going to sound obvious, but do make sure that both your computer and iPhone are on the same wifi network to begin with. If you're on a laptop or something that has both an Ethernet cord and a wifi access point, perhaps try unplugging the Ethernet cord, just for grins.

    Otherwise it looks like you're doing everything right, so I don't really know what the problem is.
     
  9. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    Yes of course I am on the same WiFi network [​IMG]

    I need help, please guys [​IMG]
     
  10. Pillows

    Pillows Member

    Newcomer
    16
    0
    Dec 18, 2010
    This fluffy pillow
    Host should be the IP Address in your iPhone.
    User is root.
    Password is alpine.
    Be sure you have OpenSCP in the computer.
    Also, have OpenSSH on the iPhone.
    Set File Protocol to SCP.
     
  11. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    What is OpenSCP?

    --EDIT--

    I found something really weird.... If I reinstall OpenSSH on my iphone, the SSH worlks for like 3-5 seconds then gets constant error again, if I reinstall it again (OpenSSH) it works for about 3-5 seconds then I get the same error

    weird?
     
  12. Joe88

    Joe88 [λ]

    Member
    11,623
    2,852
    Jan 6, 2008
    United States
    NYC
    I like to use SSH Secure Shell rather then WinSCP
    but I found that ssh is rather unreliable and slow so I just opt for iFunBox instead
     
  13. metamaster

    metamaster GBAtemp Advanced Fan

    Member
    876
    3
    Mar 7, 2010
    Canada
    Maybe another package is conflicting with openSSH (although I doubt it). What other things did you install with Cydia that might affect wifi?
    Make sure you did all your updates in Cydia.

    Also, I sometimes get that error if a device is locked. Try unlocking it before.
     
  14. Dangy

    Dangy GBAtemp Maniac

    Member
    1,406
    15
    Apr 5, 2009
    United States
    This.

    I use SSH only when absolutely necessary. iFunBox is so much faster and consistent.
     
  15. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    but that requires usb cable right?
     
  16. Dangy

    Dangy GBAtemp Maniac

    Member
    1,406
    15
    Apr 5, 2009
    United States
    Yes. Would you mind telling me what you're trying to SSH for?

    It's possible that you could use iFile if is a relatively small task.
     
  17. metamaster

    metamaster GBAtemp Advanced Fan

    Member
    876
    3
    Mar 7, 2010
    Canada
    @haddad: Yes, and afc2add (which is installed automatically by certain jailbreaks, such as Greenpois0n)
     
  18. haddad
    OP

    haddad GBAtemp Advanced Maniac

    Member
    1,519
    16
    Aug 12, 2010
    Canada
    just transferring photo's. [​IMG] and i would like to do it without the use for a cable