Question

Sorry for my stupid questions. I'm new to linux and just learning. Appreciate to ur help in advance.

  • Posted on August 6, 2013
  • imkyakyAsked by imkyaky

Hi there,

Sorry for my stupid questions. I’m new to linux and just learning. Appreciate to ur help in advance.

I’ve done everything of the ssh part from tutorial. I made the ssh work. however there are two things that I don’t understand.

  1. I copied id_rsa.pub to .ssh/authorized_keys. every time when I use ssh to log in, it asks for my .pib publickey. shouldn’t ask for my private key? shouldn’t be public key on server side and use private key on client side for logging in? otherwise what does private key do if server side use public key and require client side for public as well? private key is not using when auth?

  2. I set “PasswordAuthentication no” and “PermitRootLogin no” and run “sudo service ssh restart”. why it doesn’t ask for passphrase when i use key to login anymore? I thought these two command only have something to do with password login and root login. why does it make passphrase not work anymore?

Kind Regards

Yan


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Check out <a href=“https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps”>How to Create SSH Keys with PuTTY to Connect to a VPS</a> for a half-@$$ summary on public key authentication.

problem solved. <br> <br>The problem was SecureCRT cached private key which is not a very good idea… :(

not as root. I created a user which was added into admin group