How to generate an ssh key for logging into a server without a password
问题 I have used servers on amazon AWS where they send me a public key .pem file and when I ssh in, all I have to do is: ssh -i key.pem user@server I now have a server of my own and am trying to figure out how I can do this with my server so I can automate commands to my server via ssh. I imagine that I need to generate this key on my server and copy it to my client machine. How do I generate this key? 回答1: On the client machine you wish to login from , run ssh-keygen . For a quick and easy key,