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

    ssh from Windows to Nexus 5 16.4 stable channel

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 299 Views 1 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.
      • M Offline
        moodroid
        last edited by

        Hi,

        I've followed:
        http://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html

        When I try and ssh from Git bash (or Putty), I get permission denied. I've even tried the -i option to specify the my key file.

        Windows@Windows-PC MINGW64 ~/.ssh
        $ pwd
        /c/Users/Windows/.ssh

        Windows@Windows-PC MINGW64 ~/.ssh
        $ ls
        id_rsa id_rsa.pub

        Windows@Windows-PC MINGW64 ~/.ssh
        $ ssh -i ./id_rsa.pub phablet@192.168.0.13
        The authenticity of host '192.168.0.13 (192.168.0.13)' can't be established.
        RSA key fingerprint is SHA256:WKT3/hAtjWDUTiht4wkTp5LfTQ+orK4hQZ/gEE7b0Zg.
        Are you sure you want to continue connecting (yes/no)? yes
        Warning: Permanently added '192.168.0.13' (RSA) to the list of known hosts.
        phablet@192.168.0.13: Permission denied (publickey).

        Any ideas most gratefully received.

        Thanks

        1 Reply Last reply Reply Quote 0
        • IngoI Offline
          Ingo
          last edited by

          @moodroid said in ssh from Windows to Nexus 5 16.4 stable channel:

          ssh -i ./id_rsa.pub phablet@192.168.0.13

          You're using the public key when doing the ssh connection. But the public key needs to be on the phone. When you connect, you need to use the private key (the one without ".pub").

          ssh -i ./id_rsa phablet@192.168.0.13
          
          1 Reply Last reply Reply Quote 1
          • M Offline
            moodroid
            last edited by

            Sorted - thanks very much

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