SSH to Pixel3a Focal
-
Dear all,
I tried to connect to my Pixel3a via SSHI set up the mobile according to the the proposal in
https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html#configure-your-deviceand I also tried
https://forums.ubports.com/post/75754The SSH seems running on the mobile since
systemctl status ssh.service
says, that ssh is active.However the results follwong both proposals is the same when connecting from the PC to the mobile, since the result is always "Permission denied."
Any suggetion, where I could look into?
Mobile: PIXEL 3a Focal
PC: Open Suse Tumbleweed.Thanks a lot for every hint.
Best regardsJörg
-
@JSBuch
Really not sure if needed but did you enable deveopper mode ?
Otherwise should be good
. Just did the setup on my P3a 2 days ago, and working for me -
-
Dear all.
thanks a lot for the supporl.
It was actually some wrong permissions for the folder .ssh/ and the file authorized_keys in combination with the lack of restarting the ssh-server. Sorry for that.Now it works. The solution is as shown in https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html
chmod 700 /home/phablet/.ssh
chmod 600 /home/phablet/.ssh/authorized_keys
chown -R phablet:phablet /home/phablet/.sshand after this modification, stop and restart of the ssh-server
sudo servcie ssh stop
sudo servcie ssh start
systemctl status sshThanks a lot
Jörg -
J JSBuch has marked this topic as solved on
-
-
@Keneda said in SSH to Pixel3a Focal:
@JSBuch said in SSH to Pixel3a Focal:
sudo servcie ssh stop
sudo servcie ssh startservice ?
Yes this is how we do in 20.04
-
@lduboeuf
Here there's a typo, that's what I guess. -
@Keneda
Yes you are right, pleae apologizy the misprint, it should be service ...Summarizing the procedure is as shown in https://docs.ubports.com/en/latest/userguide/advanceduse/ssh.html:
chmod 700 /home/phablet/.ssh
chmod 600 /home/phablet/.ssh/authorized_keys
chown -R phablet:phablet /home/phablet/.sshand after this modification, stop and restart of the ssh-server
sudo service ssh stop
sudo service ssh start
systemctl status ssh
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login