ssh from phone (client)
I try to connect with ssh from my phone (FP2 with UT) to openssh server on PC (with Ubuntu 16.04).
I succeed with password authentication, but not with public/private key authentication.
In a terminal on the phone I did:
- key generation:
ssh-keygen -t rsa
- copy of public key to server:
ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<ipaddress>Until there, it works fine, the key was added in authorized_keys on server.
But then when I tried to connect from the phone with
ssh <username>@<ipaddress>, I had the message:
Agent admitted failure to sign using the key <username>@<ipaddress>'s password:
After searching what could be wrong, I tried
ssh-add, that did not solve the problem, instead the message is displayed twice:
Agent admitted failure to sign using the key Agent admitted failure to sign using the key <username>@<ipaddress>'s password:
I reboot the phone, restart the server on PC, delete .ssh on the phone, delete the authorized key on server and redo everything. But the issue is still there!
Does someone has an idea how to solve this?
- key generation:
maybe you found here some idea's what you can try to get it working
@ublublu Run before ssh:
if this does not help, use ssh -vv ... and post the log here.
This works, I can connect to the server by entering my passphrase of private key.
But this is not a complete solution because I have to do it each time I start a new terminal and I suppose that it prevent from ssh-agent running properly. Doing
Could not open a connection to your authentication agent.
I find that there was similar issue on ubuntu desktop (and someone with a BQ E5)
But it seems there was also no real solution.
@Einstein212 Thank for the link.
It explain how to use ssh but by setting ssh server on phone side.
In fact, I could do it this way for my purpose: I just want to use rsync to save my phone home.
I thought it was easier to use ssh as client on my phone. First I have ssh server ready for use on my desktop. Then I had nothing to configure or authorize on my phone (except keys generation and transfer).
Just to say that now with UT 16.04, no more problem, I can connect by ssh from my phone (ssh client) to my PC (ssh server) by using the public/private key authentication.