How to use public ssh key [not relevant]

asked 2014-11-08 02:34:13 +0300

mdosch gravatar image

updated 2014-12-01 20:05:57 +0300

simo gravatar image

As usual i put my public key to ~/.ssh/authorized_keys but my jolla still asks for a password. What's the difference between jolla and linux in using SSH?

edit retag flag offensive reopen delete

The question has been closed for the following reason "question is not relevant or outdated" by 2Ti
close date 2014-11-09 16:10:10.965176

Comments

2

Is your Jolla private key in /home/nemo/.ssh/id_rsa ? And is your Jolla public key in the server /home/username_of_server/.ssh/authorized_keys ?

Robin ( 2014-11-08 05:29:11 +0300 )edit
1

@Robin He said his Jolla asks for a password, so it's the opposite scenario.

@mdosch Jolla is a Linux, no difference, have you double checked the rights?

Sthocs ( 2014-11-08 14:09:06 +0300 )edit

Thank you for your replies. I recreated the authorized_keys and pasted my key again and it works. Maybe there went something wrong at first creation, now it works as expected. :)

mdosch ( 2014-11-08 14:19:51 +0300 )edit

@mdosch Then maybe close this question?

Tanghus ( 2014-11-08 18:26:28 +0300 )edit

@mdosch: To avoid copy-and-paste problems or problems with wrong access rights on ~/.ssh/authorized_keys, you could use ssh-copy-id, which handles all this very well.

See @Kontio's post at https://together.jolla.com/question/2650/disable-ssh-daemon-when-remote-connections-are-disabled/#comment-2682.

ralooyar ( 2014-11-30 18:10:57 +0300 )edit