I know there are many guides, but why not?!
Variables
%User% => User you want
Permission Set
%User%/.ssh => 0700
%User%/.ssh/authorized_keys => 0600
Setup Steps
-
Create an Key with Puttygen
-
Open Puttygen
-
Set the Parameters so RSA with 2048 bits
-
Click on Generate
-
Move your mouse, until the Generation is finished
-
Enter a Key Comment (Name of the Key) and enter a password for the key (if you leave the passphrase blank, everyone can use the key)
-
Save public and private key
-
Copy the value of the box “Public Key for pasting into OpenSSH authorized_keys file”
-
Paste the value to %User%/.ssh/authorized_keys in an extra line
-
-
Use the Generated Private Key in an SSH Session (for example in Putty)
-
If you want to save it permanently, open Pageant and add the Private Key into the List.
-
-
Change the Service
-
open /etc/ssh/sshd_config and change the Line “PermitRootLogin yes” to “PermitRootLogin without-password”
-
Restart the SSHD Service
-