sshd with publickey problem in Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello fedora-list,

  I used Radhat 8 and use public key with ssh all the time.
But after I installed Fedora 2. I cannot use public key to ssh to a
Fedora machine. But I can ssh to a Radhat8 machine with public key.

The message from ssh -v is:

OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to newlab [129.49.51.71] port 22.
debug1: Connection established.
debug1: identity file /home/qianglu/.ssh/identity type 0
debug1: identity file /home/qianglu/.ssh/id_rsa type 1
debug1: identity file /home/qianglu/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'newlab' is known and matches the RSA host key.
debug1: Found key in /home/qianglu/.ssh/known_hosts:49
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/qianglu/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering public key: /home/qianglu/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password

Then it ask for password.

I checked /etc/ssh/sshd_config. There are nothing wrong. I even copied the
sshd_config on the Redhat8 machine to the Fedora machine. But I still
cannot ssh to the Fedora machine with public key. But with the same
sshd_config on the Redhat8, I can ssh to the Redhat8 from Fedora
machine with publickey.

What I did with the public key is:

ssh-keygen -t dsa to generate id_dsa and id_dsa.pub (on Redhat 8
machine).
scp the id_dsa.pub to Fedora machine, and cat it >> to the
authorized_keys file under .ssh (also authorized_keys2).


Can anyone tell me what happened to Fedora about sshd. Thanks in
advance.


-- 
Best regards,
 Qiang                          mailto:qlu@xxxxxxxxxxxxxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux