CM7: How to enable passwordless SSH login on same network?
Try this:


Take/generate a public key of your Android device. Don't you ever hardcode your password into scripts :)
Put it into .ssh/authorized_keys on main computer
Then use "from=" mask to limit IP/hostname to your LAN, like from="192.168.1.*".


If IP range won't work, set up a fixed hostname for MAC address of your device on WLAN. Some AP firmwares, like OpenWRT, allow it.