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 510 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post