ssh from Windows to Nexus 5 16.4 stable channel
-
Hi,
I've followed:
http://docs.ubports.com/en/latest/userguide/advanceduse/ssh.htmlWhen 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/.sshWindows@Windows-PC MINGW64 ~/.ssh
$ ls
id_rsa id_rsa.pubWindows@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
-
@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
-
Sorted - thanks very much