PINE64
SSH wont connect [Permission denied (publickey,password)]. - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: SSH wont connect [Permission denied (publickey,password)]. (/showthread.php?tid=10237)



SSH wont connect [Permission denied (publickey,password)]. - LMalilil - 06-13-2020

I have tried everything to get SSH to connect from my client desktop running Ubuntu 20.04 to the pinephone. I generated a key and ssh'd into my desktop from the phone and was able to move the public rsa key to my /.ssh/authorized_keys using the scp command in terminal but i still can't access the pinephone from my desktop client. I have exhausted all options so any help would be appreciated. Thanks


RE: SSH wont connect [Permission denied (publickey,password)]. - LMalilil - 06-14-2020

Got ssh working. Got Crust working but may have to reinstall . Scaling is all messed up now


RE: SSH wont connect [Permission denied (publickey,password)]. - pphone-newbie - 06-23-2020

(06-14-2020, 09:56 AM)LMalilil Wrote: Got ssh working. Got Crust working but may have to reinstall . Scaling is all messed up now
Hi,

I have the same problem. Could you describe how you get the problem fixed?

I transferred the desktop's public key to the device and installed it in /home/phablet/.ssh/authorized_keys.
However, If i try to connect as user phablet, I get "Permission denied (publickey)"

Is this the wrong place to store the key? Or the wrong key at all?
What changes are necessary in /etc/ssh/sshd.config?
I started the server using ssh start.

Connecting from the device to the desktop works out of the box.

Thanks a million for your advice
Mat


RE: SSH wont connect [Permission denied (publickey,password)]. - LMalilil - 06-23-2020

(06-23-2020, 09:13 AM)pphone-newbie Wrote:
(06-14-2020, 09:56 AM)LMalilil Wrote: Got ssh working. Got Crust working but may have to reinstall . Scaling is all messed up now
Hi,

I have the same problem. Could you describe how you get the problem fixed?

I transferred the desktop's public key to the device and installed it in /home/phablet/.ssh/authorized_keys.
However, If i try to connect as user phablet, I get "Permission denied (publickey)"

Is this the wrong place to store the key? Or the wrong key at all?
What changes are necessary in /etc/ssh/sshd.config?
I started the server using ssh start.

Connecting from the device to the desktop works out of the box.

Thanks a million for your advice
Mat
Make sure your openssh server is running on your phone with the command "ssh localhost". If you have the public key on the phone already you should be good after starting the localhost server