ssh to RPi externally
Posted: Wed May 22, 2013 8:59 am
Hi there,
I am trying to set up my Pi so that I can ssh to it from work. I have a static IP at home and have assigned the Pi a static IP too. I've also port forwarded port 1024 to port 22 on the router and assigned it to the Pi.
But I still can't connect from outside the LAN. I have allowed incoming ssh traffic in the iptables:
and allowed verbose logging for ssh. Trying to log in logs this:
Can anyone help me get this working?
I am trying to set up my Pi so that I can ssh to it from work. I have a static IP at home and have assigned the Pi a static IP too. I've also port forwarded port 1024 to port 22 on the router and assigned it to the Pi.
But I still can't connect from outside the LAN. I have allowed incoming ssh traffic in the iptables:
Code: Select all
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destinationCode: Select all
May 22 09:53:01 raspberrypi CRON[2699]: pam_unix(cron:session): session opened for user pi by (uid=0)
May 22 09:53:01 raspberrypi sudo: pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python /hom$
May 22 09:53:01 raspberrypi sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
May 22 09:53:07 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
May 22 09:53:07 raspberrypi CRON[2699]: pam_unix(cron:session): session closed for user pi