Key-identification with ssh-server and Android 4.1.1 ?

Discussion in 'Android Tablet Usage, Tips & Tricks' started by a2109a, Jan 6, 2013.

  1. a2109a

    a2109a Member

    Joined:
    Dec 20, 2012
    Messages:
    90
    Likes Received:
    4
    Trophy Points:
    72
    Tablet / Device:
    Lenovo IdeaTab A2109A
    Device: LENOVO IdeaTabA2109A
    Android Version: 4.1.1
    Build: JRO03R.A2109A_03_13_121126_MCL0201

    I tried to setup authorized_keys to connect to the ssh-server on my
    IdeaTab A2109A following [Tutorial] Getting a SSH client and server working on CyanogenMod | TK Assembled

    Unfortunately adb-commands did not work for me, could depend on my knowledge, but I think adb is not needed. Connection via ssh to the tablet should be an alternative.

    I connected from my Ubuntu 12.04 via ssh to the ssh-server of the tablet ( https://play.google.com/store/apps/details?id=me.shkschneider.dropbearserver )

    [Tutorial] Getting a SSH client and server working on CyanogenMod | TK Assembled



    No idea, why he does "cd /", but I did it. Then mkdir didn't work, so I did

    [/QUOTE]

    mkdir -p /data/dropbear/.ssh
    [/QUOTE]

    And maybe this is the problem, why key-identification didn't work at the end. Maybe the authorized_keys are expected at another place.

    [Tutorial] Getting a SSH client and server working on CyanogenMod | TK Assembled



    dropbearkey was not found, so there is a path problem. I have installed https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside and postinstalled System v1.95. Using the shell at the tablet, "which dropbearkey" told me, that it is found at "/data/data/com.spartacusrex.spartacuside/files/system/bin/dropbearkey"

    So I did this to create the server keys:



    [Tutorial] Getting a SSH client and server working on CyanogenMod | TK Assembled




    Instead of using adb, I used vi and the clipboard to copy the key of my pc to /data/.ssh/authorized_keys



    I stopped the ssh-server and started it again and then I tried to login to the tablet via ssh from my pc and was asked for the password. So what is wrong?




    It would be interesting what is configured in sshd_config, but the query rans for a very long time now and showed no result.




    My local pc:

     
    Last edited: Jan 6, 2013
  2. a2109a

    a2109a Member

    Joined:
    Dec 20, 2012
    Messages:
    90
    Likes Received:
    4
    Trophy Points:
    72
    Tablet / Device:
    Lenovo IdeaTab A2109A
    https://android.googlesource.com/pl...380bc5d2445788325e5092bd0/sshd_config.android
    So the difference is a dot.

    So I tried "ln -s" to link these 3 files and got "link failed File exists", but I could copy the files with cp

    No idea, what this file named empty is for.

    I am still asked for the password to login.
     
    Last edited: Jan 6, 2013
  3. a2109a

    a2109a Member

    Joined:
    Dec 20, 2012
    Messages:
    90
    Likes Received:
    4
    Trophy Points:
    72
    Tablet / Device:
    Lenovo IdeaTab A2109A
    Solved,

    just copy your pulic_key of the pc to the internal sdcard and then import it with the SSH-Server-app at the menu. It looks like the standard place is ignored. I didn't find the key afterwards at /date/ssh/authorized_keys or /date/.ssh/authorized_keys. Before the import with the app I delete my public_key of the pc in both authorized_keys files. The app didn't allow me an import from an other place than the internal sdcard.
     

Share This Page

Search tags for this page

ssh andandroid

,

ssh find name of android tablet