RaspbmcCrystalbuntu

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote SSH to raspbmc
07-02-2012, 02:36 PM
Post: #1
Remote SSH to raspbmc
Hi,

I'm a relative linux beginner. I received my pi last week and have since installed raspbmc on it. I have given this pi a static ip address and have forwarded router port 22 to this pi. The problem is that while I can login over my local wifi, I can't seem to login to the pi over the internet. This setup worked fine with the earlier debian install I downloaded from the pi site. My ssh client, for example from my phone, always gives me a ECONNRESET error.

Do I have to set a particular setting for remote ssh to work?

Thanks.
Find all posts by this user
07-02-2012, 02:40 PM
Post: #2
RE: Remote SSH to raspbmc
If you can't access over the Internet, it's because you didn't port forward the Pi on your router.
Visit this user's website Find all posts by this user
07-02-2012, 04:14 PM (This post was last modified: 07-02-2012 04:14 PM by nadnerb.)
Post: #3
RE: Remote SSH to raspbmc
(07-02-2012 02:36 PM)gaurav Wrote:  Hi,

I'm a relative linux beginner. I received my pi last week and have since installed raspbmc on it. I have given this pi a static ip address and have forwarded router port 22 to this pi. The problem is that while I can login over my local wifi, I can't seem to login to the pi over the internet. This setup worked fine with the earlier debian install I downloaded from the pi site. My ssh client, for example from my phone, always gives me a ECONNRESET error.

Do I have to set a particular setting for remote ssh to work?

Thanks.

What IP address are you trying to access your pi on from your phone?
It should be your WAN address, ie. it shouldn't begin 192.168... etc
Find all posts by this user
01-22-2013, 02:40 PM (This post was last modified: 01-22-2013 02:47 PM by Dilligaf.)
Post: #4
RE: Remote SSH to raspbmc
(07-02-2012 04:14 PM)nadnerb Wrote:  
(07-02-2012 02:36 PM)gaurav Wrote:  Hi,

I'm a relative linux beginner. I received my pi last week and have since installed raspbmc on it. I have given this pi a static ip address and have forwarded router port 22 to this pi. The problem is that while I can login over my local wifi, I can't seem to login to the pi over the internet. This setup worked fine with the earlier debian install I downloaded from the pi site. My ssh client, for example from my phone, always gives me a ECONNRESET error.

Do I have to set a particular setting for remote ssh to work?

Thanks.




What IP address are you trying to access your pi on from your phone?
It should be your WAN address, ie. it shouldn't begin 192.168... etc

I'm experiencing the same problem.
i registered a domain at dyndns and forwarded port 22 to the pi.
ssh in the lan is no problem, while trying to ssh through the external ip fails.

when trying ssh mydomain.dyndns.org, nothing happens until i press ctrl-c
when pinging that adress, i get the correct ip adress.
Find all posts by this user
01-22-2013, 02:54 PM (This post was last modified: 01-22-2013 02:55 PM by Dilligaf.)
Post: #5
RE: Remote SSH to raspbmc
Is port 22 open or is your provider blocking it? Try a port scan site such as ShielsdUp

@Murdock I fixed your post, when quoting and replying don't type inside the quote tags

Pi problems?? Start here http://forum.stmlabs.com/showthread.php?tid=3918
http://elinux.org/R-Pi_Troubleshooting
http://elinux.org/RPi_config.txt
Find all posts by this user
01-22-2013, 05:26 PM (This post was last modified: 01-22-2013 05:32 PM by murdoc.)
Post: #6
RE: Remote SSH to raspbmc
@Dilligaf thanks for that!

Shieldsup reports that port 22 is open.
To get around the dyndns issue i tried to ssh directly into the routers outward ip adress, same result.
To Provide some additional info:

The Router is a Speedport W723V obtained via German Telekom (the firmware is Telekom branded, Version 1.26.000).

The Portforwarding is pretty easy.
Find all posts by this user
01-22-2013, 05:34 PM (This post was last modified: 01-22-2013 06:13 PM by Dilligaf.)
Post: #7
RE: Remote SSH to raspbmc
Probably something in your network then, or your cell service. If you PM me your IP I will try to connect from here. If you don't trust me I understand.

Edit: Just realized that as a Mod I can see your IP tried to connect and was greeted with a login so it's working. Maybe your cell phone setup has a problem.

Have you tried from outside your network or just from inside?? Loopback can cause issues

If trying from a cell phone make sure to turn off wireless network first so you force the phone to use the cell network and not your local network.

Pi problems?? Start here http://forum.stmlabs.com/showthread.php?tid=3918
http://elinux.org/R-Pi_Troubleshooting
http://elinux.org/RPi_config.txt
Find all posts by this user
01-23-2013, 12:28 AM
Post: #8
RE: Remote SSH to raspbmc
(01-22-2013 05:34 PM)Dilligaf Wrote:  Probably something in your network then, or your cell service. If you PM me your IP I will try to connect from here. If you don't trust me I understand.

Edit: Just realized that as a Mod I can see your IP tried to connect and was greeted with a login so it's working. Maybe your cell phone setup has a problem.

Have you tried from outside your network or just from inside?? Loopback can cause issues

If trying from a cell phone make sure to turn off wireless network first so you force the phone to use the cell network and not your local network.

i found a minor flaw with the router after asking google the right questions.
instead of forwarding port 22 i have to redirect from port 22 to port 22 (which makes no sense) - as you saw, it works now.

loopback is an issue, btw. i tried accessing the WAN ip from within the network, which did not work at all.
Find all posts by this user
01-23-2013, 12:36 AM
Post: #9
RE: Remote SSH to raspbmc
Loopback on most consumer routers fails. My DD-WRT router seems to handle it most of the time

Pi problems?? Start here http://forum.stmlabs.com/showthread.php?tid=3918
http://elinux.org/R-Pi_Troubleshooting
http://elinux.org/RPi_config.txt
Find all posts by this user
01-26-2013, 10:42 AM
Post: #10
RE: Remote SSH to raspbmc
Perhaps consider having a non-standard port on the WAN side of the router to reduce the chance of being hacked
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Sponsored Advertisement