I am trying to expose my raspbmc's ssh port to the world through my internet router. I can connect to the device on my LAN. I have another Windows 7 machine with cygwin and sshd installed on it and I can ssh into that machine through my firewall. I believe I know how to configure my router to forward ports.
Here's what I tried:
Attempt 1
- Forward external port 22222 to port 22 on my raspbmc
- Connect to port 22222 on my external ip with:
ssh -vv -p 22222 pi@MY_IP OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to MY_IP [MY_IP] port 22222. debug1: connect to address MY_IP port 22222: Connection timed out ssh: connect to host MY_IP port 22222: Connection timed out
Doing this, but forwarding to my Win7 box works, seemingly indicating that I know how to configure my router.
Attempt 2
Then I tried turning off port 22 forwarding to my Win7 machine and forwarding external port 22 to my rapsbmc's port 22, such that the only tweaking that I did of the router configuration was to change which LAN address the packets were forwarded to. Connections to Win7 box stopped [expected], but connections to raspbmc did not work:
$ ssh -p 22 -vv pi@MY_IP
OpenSSH_6.2p1, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to MY_IP [MY_IP] port 22.
debug1: connect to address MY_IP port 22: Connection timed out
ssh: connect to host MY_IP port 22: Connection timed out
I believe the packets [UDP and TCP] are getting to my raspbmc from outside my LAN. Where are the log files for sshd
on raspbmc? I can't even find sshd on my raspbmc:
sudo find / -name sshd
yields nothing.