[Openwrt] how to ssh OM?

2009-07-25 Thread jumper dev
hi,

how do I ssh OM using openwrt?

when I used om08 I used this script for ssh and internet access but it
doesnt work with openwrt..

#!/bin/sh
 sudo ifconfig usb0 192.168.0.200
 sudo /sbin/route add -host 192.168.0.202/32 dev usb0
 sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
 sudo iptables -P FORWARD ACCEPT
 sudo sysctl -w net.ipv4.ip_forward=1
 sudo scp /etc/resolv.conf r...@192.168.0.202:/etc/resolv.conf

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Openwrt] how to ssh OM?

2009-07-25 Thread Michael Zanetti
On Saturday 25 July 2009 12:35:19 jumper dev wrote:
 hi,

 how do I ssh OM using openwrt?

 when I used om08 I used this script for ssh and internet access but it
 doesnt work with openwrt..

 #!/bin/sh

  sudo ifconfig usb0 192.168.0.200
  sudo /sbin/route add -host 192.168.0.202/32 dev usb0
  sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
  sudo iptables -P FORWARD ACCEPT
  sudo sysctl -w net.ipv4.ip_forward=1
  sudo scp /etc/resolv.conf r...@192.168.0.202:/etc/resolv.conf

Check out the wiki page:
http://wiki.openmoko.org/wiki/OpenWrt

See the bottom of the page on how to connect via usb.

Cheers,
Michael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Openwrt] how to ssh OM?

2009-07-25 Thread jumper dev
the problem is my router uses that address (192.168.1.1) ..


On Sat, Jul 25, 2009 at 2:01 PM, Michael Zanetti michael_zane...@gmx.netwrote:

 On Saturday 25 July 2009 12:35:19 jumper dev wrote:
  hi,
 
  how do I ssh OM using openwrt?
 
  when I used om08 I used this script for ssh and internet access but it
  doesnt work with openwrt..
 
  #!/bin/sh
 
   sudo ifconfig usb0 192.168.0.200
   sudo /sbin/route add -host 192.168.0.202/32 dev usb0
   sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
   sudo iptables -P FORWARD ACCEPT
   sudo sysctl -w net.ipv4.ip_forward=1
   sudo scp /etc/resolv.conf r...@192.168.0.202:/etc/resolv.conf

 Check out the wiki page:
 http://wiki.openmoko.org/wiki/OpenWrt

 See the bottom of the page on how to connect via usb.

 Cheers,
 Michael

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [Openwrt] how to ssh OM?

2009-07-25 Thread Robin Paulson
2009/7/26 jumper dev dev.jum...@gmail.com:
 the problem is my router uses that address (192.168.1.1) ..


iirc there's info on the usb networking page of the wiki about
changing the address of either your router or freerunner. both are
fairly trivial

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community