Connecting by ssh
-
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) -
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
-
Done every step from your links, but still got same message, when trying ssh from laptop or run "ssh localhost"
-
@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)
-
@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