Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Remotely accessing the Touch

  1. #1
    Default Remotely accessing the Touch
    Hi,
    I've ssh and Apache running on the Touch and both are available locally (i.e. I can "ssh [email protected]" and use Safari to view the Apache page at http://localhost.

    However - I cannot ssh in to it from an external machine or access the Apache. I'm getting the standard "connection refused".

    The device has internet access as Safari, YouTube and command line FTP (ncftp) all work for outgoing connections. I have noticed that command line tools do not have working DNS, even though Safari does.

    I've had a wander through /etc etc and can't find any config files that look like firewall config scripts, and from searching around I can't find anyone else having the same problem.

    Can anyone advise me how to make these services available externally?

    Cheers
    Nick

  2. #2
    Livin the iPhone Life Eurisko's Avatar
    Join Date
    Aug 2007
    Location
    Toronto, Canada
    Posts
    3,307
    Thanks
    12
    Thanked 562 Times in 483 Posts

    Quote Originally Posted by NickR View Post
    Hi,
    I've ssh and Apache running on the Touch and both are available locally (i.e. I can "ssh [email protected]" and use Safari to view the Apache page at http://localhost.

    However - I cannot ssh in to it from an external machine or access the Apache. I'm getting the standard "connection refused".

    The device has internet access as Safari, YouTube and command line FTP (ncftp) all work for outgoing connections. I have noticed that command line tools do not have working DNS, even though Safari does.

    I've had a wander through /etc etc and can't find any config files that look like firewall config scripts, and from searching around I can't find anyone else having the same problem.

    Can anyone advise me how to make these services available externally?

    Cheers
    Nick
    "Connection refused" usually means your SSH daemon is not running. To SSH in from your computer are you using the form: ssh -l root <ipaddress> ?
    Get "iPod & iTunes for Dummies", it'll change your life.

  3. #3
    I've tried "ssh <ipno>" and "ssh root@<ipno>".

    I've also tried using a web-browser to point to Apache with no success - hence wondering if it was a firewall issue.

    I will try the "ssh -l root <ipno>" tonight when I get home.

    Thanks!

    Nick

    Tried that, unfortunately its not made any difference, still get the same message.

    Thanks for the suggestion though. Can you (or anyone else) think of anything else I could try?

    Cheers
    Nick
    Last edited by NickR; 2007-11-15 at 09:41 PM. Reason: Automerged Doublepost

  4. #4
    can you ping the iPod? it may be that its the router or access point stopping your connection. not the iPod. in which case you'll need to muck about with your router.

  5. #5
    No, I'm unable to ping either.

    Outgoing connections are all fine, no incomming connections work.

    However I'm pretty sure that its not the router as I have other machines on the network and can ping between these without any problems at all. This is what led me to believe it might be a local firewall, but I can't see any config scripts to support this idea.

    Coming from a linux background there doesnt seem to be a hosts.allow or hosts.deny and I'm not sure if OSX uses these?

    I also can't see the inetd config script, although I am certain the service is running as I can successfully ssh to it locally.

    I've not played around with the sshd config, and was wondering whether its only listening locally or something like that, but given I dont know that area, and also because I cannot access apache remotely either (making me believe its not ssh specific) I've been looking for alternatives.

    Thanks for all the help, if anyone can suggest anything else I'd be grateful.

    Cheers
    Nick

  6. #6
    i don't know if this is really a smart question to ask or not, but have you got BSD Subsystem installed?
    I suspect you would for any of this to work locally, but its good to ask.

  7. #7
    Any question is worth asking!

    But yes I do have it installed.

    Cheers
    Nick

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •