Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Connecting by ssh

    Support
    3
    5
    1342
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tager18 last edited by

      When I try to connect by ssh from my laptop with ubuntu to Nexus 5 I got a message:
      Permission denied (publickey).

      (same message, when I try to connect to localhost (ssh localhost), to use a loopback ssh connection in my phone)

      But when I try to connect from phone to laptop, there is no problem.
      Any ideas how make this work ? (I know about connecting with usb and use adb but I would like to make ssh work)

      1 Reply Last reply Reply Quote 0
      • G
        guru last edited by

        You can only ssh login into the phone (by all means: Wifi, USB tethering or localhost) to the userid 'phablet' and using RSA keypairs. All the details are written in my small Gitbook about the E4.5 in English and Spanish:

        https://gurucubano.gitbooks.io/bq-aquaris-e-4-5-ubuntu-phone/content/en/chapter1.html

        https://gurucubano.gitbooks.io/bq-aquaris-e-4-5-ubuntu-phone/content/en/chapter10.html

        matthias

        1 Reply Last reply Reply Quote 1
        • T
          tager18 last edited by

          Done every step from your links, but still got same message, when trying ssh from laptop or run "ssh localhost"

          D 1 Reply Last reply Reply Quote 0
          • D
            doniks @tager18 last edited by

            @tager18 Did you use YOUR public key? You know you can't use the literal wget command from @guru's book right? Because that would not be YOUR public key.

            If you are not sure what I'm talking about, then I'd suggest you delete the .ssh folder on your phone and recreate it following these steps:

            https://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041

            @guru Maybe you want to consider changing the instructions in your book. I kinda understand what you MEAN, but I think it would be more helpful for people if the instructions where LITERALLY copy/paste -able. And that would mean adb. DO include the tip that there ARE alternatives to adb, like uploading it to someones own webserver and then wget the key on the phone, but, that should be a more advanced tip further down, better explained and not as prominent. Also I do remember that I also needed more/other chmod/chown commands than in your book. The instructions on askubuntu that you do link to seem pretty foolproof to me (with -R and with chmod)

            G 1 Reply Last reply Reply Quote 1
            • G
              guru @doniks last edited by

              @doniks My instructions are very clear, it says YOUR pub key, and FOR EXAMPLE, nobody could assume that HIS / HER pub key is on MY web server; it also has the important chmod 0700 cmd;

              getting adb working is really more painfull than some Linux cmd and a wget;

              matthias

              1 Reply Last reply Reply Quote 0
              • First post
                Last post