PINE64
SSH Into PinePhone? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: SSH Into PinePhone? (/showthread.php?tid=10472)



SSH Into PinePhone? - jiapei100 - 06-28-2020

Quote:5  ✔  ssh root@192.168.1.211                                                                                                                                                 ~
ssh: connect to host 192.168.1.211 port 22: Connection refused
6  ✘  ssh phablet@192.168.1.211                                                                                                                                               ~
ssh: connect to host 192.168.1.211 port 22: Connection refused

Hmmm... It's saying that pine64 ssh is enabled by default, but it seems it's for pine64 laptop only? Please refer to: https://forum.pine64.org/showthread.php?tid=8165 .

How can I ssh into pine64 phone?


RE: SSH Into PinePhone? - kop316 - 06-29-2020

Which OS are you on? There are some how-tos on the respective forums on how to do this, but it is different based on the OS.


RE: SSH Into PinePhone? - iblocker - 06-30-2020

You can try below:

On PinePhone do below commands:
sudo mount -o remount,rw /

Generate ssh keys as root:

sudo ssh-keygen -t rsa -q -f "/root/.ssh/id_rsa" -N ""
sudo cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys

sudo cp /root/.ssh /home/phablet -R

Copy id_rsa to your Linux machine:
scp /root/.ssh/id_rsa user@IP_Linux_machine:/home/user

From Linux_machine:
ssh -i /home/user/id_rsa phablet@PinePhone_IP