• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Connecting by ssh

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 1.7k Views 3 Watching
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 Offline
      tager18
      last edited by 18 Sept 2017, 22:22

      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 Offline
        guru
        last edited by 19 Sept 2017, 05:04

        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 Offline
          tager18
          last edited by 23 Sept 2017, 20:30

          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 24 Sept 2017, 06:04 Reply Quote 0
          • D Offline
            doniks @tager18
            last edited by 24 Sept 2017, 06:04

            @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 24 Sept 2017, 08:24 Reply Quote 1
            • G Offline
              guru @doniks
              last edited by 24 Sept 2017, 08:24

              @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
              2 out of 5
              • First post
                2/5
                Last post