I wanted to create an SSH key that will only allow clients with that key connect but will not give the client the option to install that key if they ssh to that box.
this will generate a private/public pair of keys with the name you will choose or standard name is_rsa, id_rsa.pub
You will find them in the .ssh durectory, subdirectory of
the user's home (i.e. /root/ or /home/username)
Example:
To register the public key for the user john, login as john and run the above command then
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.