Results 1 to 10 of 10
Discuss SSH over wifi not working at the Tools - Hackint0sh.org; Dear all, I have a strange problem using SSH over wifi. I jailbroke my iphone ...
  1. #1
    Yug
    Yug is offline
    Newbie Array

    Join Date
    Nov 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default SSH over wifi not working

    Dear all,

    I have a strange problem using SSH over wifi. I jailbroke my iphone and have openssh installed among things. When i open the terminal on iphone, I am able to locally ssh into my iphone, using the wifi IP. When i try to ssh to my iphone from my computer, I just get a time-out. I've also tried ssh over the 3g ip address, and this sometimes worked, though not always. ssh over usb by using itunnel gives no problems. What could the problem be that using ssh over wifi doesn't work? Thanx!



  2. #2
    Rookie Array

    Join Date
    Oct 2007
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Can you specify the circumstances? Is the initiating computer on the same wireless network as the iPhone? Is it a Mac or a WinPC? What ssh client are you using? What is the error mesage you're getting? The more info you give us, the easier it is to pinpoint the problem.
    cheers! mousyak

  3. #3
    Yug
    Yug is offline
    Newbie Array

    Join Date
    Nov 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thanx for your reply!
    both computers are on the same network. I tried on windows and linux. for windows putty was used and WinSCP, on linux i used the command line ssh. I get a time-out error on windows, and linux says "no route to host". I am able to ssh to my linux computer from the iphone. Pinging from iphone to computer is also possible. Pinging from computer to iphone doesnt work either. The iphone is able to ping itself though. To me it seems like there is some sort of firewall on the iphone blocking incoming connections or something... Or my wifi is f**** up. haven't had the chance to test on another netowrk though.

  4. #4
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by Yug View Post
    Dear all,

    I have a strange problem using SSH over wifi. I jailbroke my iphone and have openssh installed among things. When i open the terminal on iphone, I am able to locally ssh into my iphone, using the wifi IP. When i try to ssh to my iphone from my computer, I just get a time-out. I've also tried ssh over the 3g ip address, and this sometimes worked, though not always. ssh over usb by using itunnel gives no problems. What could the problem be that using ssh over wifi doesn't work? Thanx!
    I know this may sound stupid: Do you have BossPrefs installed. As far as I can recall it can disable the SSH daemon automatically after a reboot of the iPhone.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  5. #5
    Yug
    Yug is offline
    Newbie Array

    Join Date
    Nov 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Yep, I have bossprefs installed, and have switched SSH on and off a million times.. I had SBSettings installed before, but the SSH button there made my iphone crash. Could it be SBSetting corrupted my SSH even though I reinstalled it?


  6. #6
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by Yug View Post
    Yep, I have bossprefs installed, and have switched SSH on and off a million times.. I had SBSettings installed before, but the SSH button there made my iphone crash. Could it be SBSetting corrupted my SSH even though I reinstalled it?
    Maybe this is the reason.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  7. #7
    Rookie Array

    Join Date
    Oct 2007
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Well, I once had a weird SSH behaviour (way in the 1.1.3 - 1.1.4 times) and it ended up resolving by full Restore, jailbreak and the works. That might be your last resort.
    Cheers!

  8. #8
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by mousyak View Post
    Well, I once had a weird SSH behaviour (way in the 1.1.3 - 1.1.4 times) and it ended up resolving by full Restore, jailbreak and the works. That might be your last resort.
    Cheers!
    Given the history this would be my preferred way out.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  9. #9
    Rookie Array iSubaru's Avatar

    Join Date
    Nov 2008
    Location
    Europe
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb

    First thing - SSH Deamon
    Second - Open it and "click" Enable
    Third - Don't turn off SSH Deamon
    Fourth - Use SSH in Your computer like this...
    If I remember correctly
    Code:
    ssh root@xxx.xxx.xxx.xxx
    where xxx is IP of Your iPhone for example 192.168.1.3
    Fifth - enjoy
    Sixth - Rep Points :hack:

    iSubaru :iphone:
    Last edited by iSubaru; 11-17-2008 at 10:15 AM.
    Booting Signature...Done
    Booting :iphone: ...Done
    Starting console ...Done
    Starting freedroidRPG ...Done

    Let's hack some bots :hack:

  10. #10
    Senior Professional Array unl0cker's Avatar

    Join Date
    Jul 2007
    Location
    In my Mind
    Posts
    128
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    From my experience with all ssh switchers, BossPrefs, SBSettings, manually, etc once
    you turn it off it WON'T go on again, unless you restart the phone. I tried to fix
    this so many times without any luck.

    The weird thing is that when you first install it, restart is not needed. But once the
    keys are generated, the switching won't work.

    Restart the iPhone, play not with any switcher, and try.

    Anyway, try to ping.. can you ping your iPhone? If not, something is wrong with your
    network. If yes, try to telnet the iPhone. YES telnet the iphone. Telnet is
    pretty raw to care not of any configuration problems and such. Telnet can connect to
    ANY open port. Like this:


    osiris:~ unl0cker$ telnet 192.168.1.101 22
    Trying 192.168.1.101...
    Connected to 192.168.1.101.
    Escape character is '^]'.
    SSH-2.0-OpenSSH_4.7
    ^C
    Connection closed by foreign host.
    osiris:~ unl0cker$
    See, I got a winner:

    Connected to 192.168.1.101.
    Escape character is '^]'.
    If connects using telnet, then is a SSH daemon configuration problem. If still no connection
    is made, then must be your network.

    Also at this point you may want to check if the daemon is running. Install MobileTerminal in
    the iPhone and type this:

    netstat -an |grep LISTEN

    You should be able to see the *.22 there. If is not then the deamon is not running.

    unl0cker:~ root# netstat -an |grep LISTEN
    tcp4 0 0 *.62078 *.* LISTEN
    tcp4 0 0 *.22 *.* LISTEN


    Many routers have a port forwarding option. Maybe that ip is set in some weird way.

    I can't think of any other network issue. If you have a laptop,
    try another network.


    Hope this helps,
    Cheers
    Last edited by unl0cker; 12-02-2008 at 07:19 AM.


 

 

Similar Threads

  1. Replies: 0
    Last Post: 03-16-2010, 06:10 PM
  2. Wifi not working
    By tron90 in forum iPhone "2G" (Rev. 1)
    Replies: 1
    Last Post: 12-08-2007, 07:26 PM
  3. Replies: 1
    Last Post: 10-26-2007, 05:55 AM
  4. WiFi not working 1.0.2
    By watsonnicole1 in forum General
    Replies: 3
    Last Post: 10-18-2007, 11: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 © 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 12:27 PM.
twitter, follow us!