CM7: How to enable passwordless SSH login on same network? I'm running CyanogenMod 7 and I'd like to enable passwordless SSH login to my main Linux computer on my network, but only when the phone is accessing the server over the same network. How/where should I put my .ssh/known_hosts file to enable this?
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.