Developing Facebook Rails app from multiple computers using SSH tunneling
I mainly code on my desktop (hackint0sh), sometimes I use my laptop (macbook). Developing facebook apps can be a pain when you are using different machines. Mainly because you have configure your Facebook app with a particular callback URL.
I have setup a free domain (dyndns) that forwards to my desktop, so I don't have to change the callback URL all the time. Now if you are using the facebooker plugin (rails), it comes with a handy task that lets you easily setup tunneling.
In your facebook.yml config
tunnel: public_host_username: akshay public_host: mugashadev.com -p 22 public_port: 3000 local_port: 3001
well, now you just start your server (locally) and run the command rake facebooker:tunnel:start
and you are good to go!... Not really, at least for me.
After searching around I found this line had to be added to /etc/sshd_config
GatewayPorts clientspecified
After restarting ssh (re-enable remote login under sharing preferences) It was working like a charm.



