I use public-key authentication with secureCRT to login linux server and turn off password authentication at these server:
1.Create the keypair(openssh key format) with SecureCRT.
2.Cat the public key named identity.pub to the $HOME/.ssh/authorized_keys.
3.In to the SSH2 category of Session Options of a server, select the PublicKey option in the Authentication section, then press the Properties button,in the Properties dialog, select the Use session public key setting ,then find the Use identity or certificate file section, and press the file browser button (…),then I select the private key named identity.
4.then I can login this server by using SecureCRT and entering the password of the keypair,that's all well.
On another server, everything is the same on the server. But in SecureCRT, instead of selecting the private key named
identity, I instead selected the public key named
identity.pub. Despite this, I could still login in the same way.
I don't understand how this is possible.
The right is secureCRT use private key to matching the public key at the server? is it ?