D
Deleted member 43773
Guest
Hi guys,
I'm trying to realize my ssh logins with pubkey authentication.
I did what's in the tutorials:
ssh-keygen (with password)
ssh-copy-id public-key -> other machine
The /etc/ssh/sshd_conf is default (except AllowedUsers and PermitrootLogin are set)
Now when I login to machine A everything is fine,
I'm asked for key-passwd.
Okay.
But when I login to machine B,
key-passwd is only asked when I login as user.
When I login as root (ssh root@....) the normal password is still asked.
So (to me it seems) there is no key-authentication, but still passwd authentication.
I experimented a bit with rm ~/.ssh/* to start all over again,
restarted sshd, modified /etc/ssh/sshd_conf,
which should not make much sense anyway, cause what I set there according to sshd_conf manpage, is default anyway.
And on machine A, where it's working as it should, nothing was modified.
ssh still asks for shell-login password, but not for the ssh-key's passwd, when I login as root.
What could I check? What I have overseen?
Thanks in advance.
I'm trying to realize my ssh logins with pubkey authentication.
I did what's in the tutorials:
ssh-keygen (with password)
ssh-copy-id public-key -> other machine
The /etc/ssh/sshd_conf is default (except AllowedUsers and PermitrootLogin are set)
Now when I login to machine A everything is fine,
I'm asked for key-passwd.
Okay.
But when I login to machine B,
key-passwd is only asked when I login as user.
When I login as root (ssh root@....) the normal password is still asked.
So (to me it seems) there is no key-authentication, but still passwd authentication.
I experimented a bit with rm ~/.ssh/* to start all over again,
restarted sshd, modified /etc/ssh/sshd_conf,
which should not make much sense anyway, cause what I set there according to sshd_conf manpage, is default anyway.
And on machine A, where it's working as it should, nothing was modified.
ssh still asks for shell-login password, but not for the ssh-key's passwd, when I login as root.
What could I check? What I have overseen?
Thanks in advance.