In the "CyanogenMod" (CM) there is a ssh-server, so that we can connect to our android without a cable (works only in W-LAN mode). With this little "HowTo" you can connect easyly to your Android... 
------------
Android:
Code:
mkdir /data/dropbear
cd /data/dropbear
dropbearkey -t dss -f dropbear_dss_host_key
dropbearkey -t rsa -f dropbear_rsa_host_key
Linux: (Debian / Ubuntu)
1.) Install ssh-client
Code:
sudo aptitude install ssh-client
1.1) Generate key
1.2) Transfer key to android
Code:
adb push ~/.ssh/id_rsa.pub /data/dropbear/.ssh/authorized_keys
Windows:
PuTTY Download Page
1.) Download "PuTTYgen"
1.1) Generate key
... click Generate and paste the string from the puttygen window (looks like "ssh-rsa AAAAB3...hclQ==rsa-key-20100227") in a text file on your Desktop "id_rsa.pub" & save (protect) your "private key"
1.2) Transfer key to android
Code:
adb push C:\Users\[USER]\Desktop\id_rsa.pub /data/dropbear/.ssh/authorized_keys
Android:
Code:
chmod 600 /data/dropbear/.ssh/authorized_keys
echo "/system/xbin/busybox sh" > /data/dropbear/.profile
chmod 755 /data/dropbear /data/dropbear/.ssh
chmod 644 /data/dropbear/dropbear*host_key
chown root.root /data/dropbear/.ssh/authorized_keys
killall dropbear
dropbear -v -s -g
Linux:
-> SSH with public-key Authentication
Windows:
PuTTY Download Page
2.) Download "putty"
2.1) Connect to your Spica
Connection: > "SSH" > "Auth" > ... browse / choose your saved "private key"
Sesseion: > enter the IP-Address from your Android ... and press Enter 
more Infos:
Howto: Connect to Device with SSH - CyanogenMod Wiki
Bookmarks