Difference between revisions of "Ssh ssl key login"

From TheBestLinux.com
Jump to navigation Jump to search
(Created page with "'''SSH Password-Less Setup''' Create private & public keys: ssh-keygen -b 4096 Save private key in VERY VERY SAFE PLACE, as well as in /etc/ssh on the server which created it! S...")
 
Line 4: Line 4:
 
ssh-keygen -b 4096
 
ssh-keygen -b 4096
 
Save private key in VERY VERY SAFE PLACE, as well as in /etc/ssh on the server which created it!
 
Save private key in VERY VERY SAFE PLACE, as well as in /etc/ssh on the server which created it!
Save public key in VERY VERY SAFE PLACE, as well as upload it to any server needing to log into using this key, by appending the /home/jamie/.ssh/authorized_keys file using cat.  The public key uploaded to servers needing it to log into should be renamed to somethign that makes the key human identifiable, aka: server.dawgland.com.id_rsa.pub which will allow ssh login without password from new home Xenon server shell to any other server I've configed:
+
Save public key in VERY VERY SAFE PLACE, as well as upload it to any server needing to log into using this key, by appending the /home/jamie/.ssh/authorized_keys file using cat.  The public key uploaded to servers needing it to log into should be renamed to somethign that makes the key human identifiable, aka: server.dawgland.com.id_rsa.pub which will allow ssh login without password from new home Xenon server shell to any other server I've configed as root superuser:
 
<pre style="color:blue">
 
<pre style="color:blue">
$ scp server.dawgland.com.id_rsa.pub jamie@ermarc.net
+
[root@localhost ~]#scp server.dawgland.com.id_rsa.pub jamie@ermarc.net
ssh jamie@ermarc.net
+
[root@localhost ~]#ssh jamie@ermarc.net
cat server.dawgland.com.id_rsa.pub >> /home/jamie/.ssh/authorized_keys
+
[root@localhost ~]#cat server.dawgland.com.id_rsa.pub >> /home/jamie/.ssh/authorized_keys
 
</pre>
 
</pre>
 
This server.dawgland.com.id_rsa.pub key can be uploaded to any and all servers needing ssh access to and configured as above.  This will allow you to log into the server without being prompted or needing to enter in your password!
 
This server.dawgland.com.id_rsa.pub key can be uploaded to any and all servers needing ssh access to and configured as above.  This will allow you to log into the server without being prompted or needing to enter in your password!

Revision as of 06:57, 8 January 2015

SSH Password-Less Setup

Create private & public keys: ssh-keygen -b 4096 Save private key in VERY VERY SAFE PLACE, as well as in /etc/ssh on the server which created it! Save public key in VERY VERY SAFE PLACE, as well as upload it to any server needing to log into using this key, by appending the /home/jamie/.ssh/authorized_keys file using cat. The public key uploaded to servers needing it to log into should be renamed to somethign that makes the key human identifiable, aka: server.dawgland.com.id_rsa.pub which will allow ssh login without password from new home Xenon server shell to any other server I've configed as root superuser:

[root@localhost ~]#scp server.dawgland.com.id_rsa.pub jamie@ermarc.net
[root@localhost ~]#ssh jamie@ermarc.net
[root@localhost ~]#cat server.dawgland.com.id_rsa.pub >> /home/jamie/.ssh/authorized_keys

This server.dawgland.com.id_rsa.pub key can be uploaded to any and all servers needing ssh access to and configured as above. This will allow you to log into the server without being prompted or needing to enter in your password!