Results 1 to 8 of 8

Thread: SSH-Server on Spica !?!

777
  1. [translate]    #1
    Senior Member
    Join Date
    May 2010
    Location
    /dev/null
    Posts
    1,704

    Lightbulb [HowTo] SSH-Server on Spica

    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:
    adb shell
    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
    Code:
    ssh-keygen -t rsa
    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:
    adb shell
    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
    Last edited by voku1987; 03-24-2011 at 09:59 AM.

  2. [translate]    #2
    Junior Member
    Join Date
    Jul 2010
    Location
    Ireland
    Posts
    4

  3. [translate]    #3
    Senior Member
    Join Date
    Jan 2011
    Location
    Indonesia
    Posts
    147

    Default

    in terminal (android) there's no such command like : adduser. useradd, and passwd
    maybe if we can create a user in our device, it would works

    defauld user will be definitely root (like other linux), but a root user should have a password
    Sorry
    For My
    Terrible English

  4. [translate]    #4
    Senior Member
    Join Date
    May 2010
    Location
    /dev/null
    Posts
    1,704

    Default

    ok. I will try this ... ->"If you use `puttygen` paste the string from
    the puttygen window (looks like "ssh-rsa
    AAAAB3...hclQ==rsa-key-20100227") in
    `authorized_keys`.
    (Do not try to rename the file created by
    puttygen - it's format is incompatible with
    dropbear)"

    ---------- Post added at 08:11 AM ---------- Previous post was at 07:12 AM ----------

    I have edit my first post and made a How-To for everybody ... hope this can help someone!!!

    Can I / someone move this Thread to "Forum: 2.2 (Froyo)"? - because it only woks with CM
    Last edited by voku1987; 03-24-2011 at 10:34 AM.

  5. [translate]    #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Indonesia
    Posts
    147

    Default

    login using rsa keys then
    oh, try using tunnelier, it has better feature than putty
    also allows alternative method to authenticate..
    Sorry
    For My
    Terrible English

  6. [translate]    #6
    Senior Member
    Join Date
    May 2010
    Location
    /dev/null
    Posts
    1,704

    Default

    Quote Originally Posted by seilent View Post
    login using rsa keys then
    oh, try using tunnelier, it has better feature than putty
    also allows alternative method to authenticate..
    or use linux !!!

  7. [translate]    #7
    Senior Member
    Join Date
    Aug 2010
    Location
    Taiwan, Taipei, Not part of CHINA
    Posts
    213

    Default

    Quote Originally Posted by voku1987 View Post
    ok. I will try this ... ->"If you use `puttygen` paste the string from
    the puttygen window (looks like "ssh-rsa
    AAAAB3...hclQ==rsa-key-20100227") in
    `authorized_keys`.
    (Do not try to rename the file created by
    puttygen - it's format is incompatible with
    dropbear)"

    ---------- Post added at 08:11 AM ---------- Previous post was at 07:12 AM ----------

    I have edit my first post and made a How-To for everybody ... hope this can help someone!!!

    Can I / someone move this Thread to "Forum: 2.2 (Froyo)"? - because it only woks with CM
    Which is mean that spicagenmod is not working too.

  8. [translate]    #8
    Senior Member
    Join Date
    Jun 2010
    Location
    of_address_to_resource
    Posts
    114

    Default

    If you want an app that can set up the ssh server easily whenever you want I can recommend QuickSSHd. It costs a couple of bucks thou. Basically it's a app for controlling dropbear but it's nice to have so the server does not always run.

    Also there's a free one, SSHDroid, but I haven't tested that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •