Difference between revisions of "Passwordless SSH"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "=== ESXi0 === * <code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1</code> * <code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1/keys</code> * <code>mkdir /.ssh</code> * <cod...")
 
Line 1: Line 1:
=== ESXi0 ===
+
===ESXi0===
  
* <code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1</code>
+
*<code>mkdir /vmfs/volumes/Admin/Utilities/ssl</code>
* <code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1/keys</code>
+
*<code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1</code>
* <code>mkdir /.ssh</code>
+
*<code>mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1/keys</code>
* <code>cd /.ssh</code>
+
*<code>mkdir /.ssh</code>
* <code>/usr/lib/vmware/openssh/bin/ssh-keygen -t rsa -b 4096</code>
+
*<code>cd /.ssh</code>
* <code>ls</code>
+
*<code>/usr/lib/vmware/openssh/bin/ssh-keygen -t rsa -b 4096</code>
* <code>cat id_rsa.pub | ssh root@ESXi1 'cat >> /etc/ssh/keys-root/authorized_keys'</code>
+
*<code>ls</code>
* <code>cd /etc/ssh/keys-root/</code>
+
*<code>cat id_rsa.pub | ssh root@ESXi1 'cat >> /etc/ssh/keys-root/authorized_keys'</code>
* <code>ls -l</code>
+
*<code>cd /etc/ssh/keys-root/</code>
* <code>cp /.ssh/* /vmfs/volumes/NFSA/ESXi1/keys/*</code>
+
*<code>ls -l</code>
 +
*<code>cp /.ssh/* /vmfs/volumes/NFSA/ESXi1/keys/*</code>

Revision as of 22:08, 6 July 2020

ESXi0

  • mkdir /vmfs/volumes/Admin/Utilities/ssl
  • mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1
  • mkdir /vmfs/volumes/Admin/Utilities/ssl/ESXi1/keys
  • mkdir /.ssh
  • cd /.ssh
  • /usr/lib/vmware/openssh/bin/ssh-keygen -t rsa -b 4096
  • ls
  • cat id_rsa.pub | ssh root@ESXi1 'cat >> /etc/ssh/keys-root/authorized_keys'
  • cd /etc/ssh/keys-root/
  • ls -l
  • cp /.ssh/* /vmfs/volumes/NFSA/ESXi1/keys/*