The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPod Models > iPod Touch > iPod Touch General Chat
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-15-2007, 07:59 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Remotely accessing the Touch

Hi,
I've ssh and Apache running on the Touch and both are available locally (i.e. I can "ssh root@localhost" 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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 11-15-2007, 08:17 AM
Eurisko's Avatar
Livin the iPhone Life
 
Join Date: Aug 2007
Device + Firmware: 3G iPhone, FW3.0
Operating System: OSX Leopard
Location: Toronto, Canada
Posts: 3,312
Thanks: 11
Thanked 554 Times in 482 Posts
Send a message via Yahoo to Eurisko

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 root@localhost" 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> ?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 11-15-2007, 02:41 PM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

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; 11-15-2007 at 02:41 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 11-16-2007, 05:11 AM
jamier's Avatar
Green Apple
 
Join Date: Oct 2007
Posts: 62
Thanks: 4
Thanked 4 Times in 3 Posts

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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 11-16-2007, 05:30 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

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
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 11-16-2007, 07:01 PM
jamier's Avatar
Green Apple
 
Join Date: Oct 2007
Posts: 62
Thanks: 4
Thanked 4 Times in 3 Posts

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.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 11-17-2007, 02:05 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Any question is worth asking!

But yes I do have it installed.

Cheers
Nick
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPod Models > iPod Touch > iPod Touch General Chat

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 04:45 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top