scidb13.12 on ubuntu ssh failed


#1

when I run ssh-copy-id -i ~/.ssh/id_rsa.pub scidb@localhost
ir says:
zxh@zxh-QTC6:~$ sudo ssh-copy-id -i ~/.ssh/id_rsa.pub scidb@localhost
scidb@localhost’s password:
Permission denied, please try again.
scidb@localhost’s password:
Permission denied, please try again.
scidb@localhost’s password:
Permission denied (publickey,password).
Is there a password here? I change the file permission of authorized_keys and .ssh to 600,but still it needs a password.


#2

I’ve solved the problem,It’s the user “scidb” where the problem is ,my ubuntu user is “zxh”,but I use “scidb@localhost”,when I change to “zxh@localhost”,It’s done.
Still,Thanks !