06-30-2020, 06:56 AM
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
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