SovLabs Support Portal will be moving soon!

SovLabs Support

Submit a Ticket My Tickets

Linux: How-To - Login with a SSH Private Key


This how-to will walk you through the necessary steps to update a VM template to include a an SSH key for passwordless access to the provisioned linux/unix VM.


Please follow steps outlined in this article to convert the template to a VM and generate the SSH key:  

How-To - Use SSH keys with Provider Node Credentials.  

This article picks up from Step 4.


Step 1 Create and Copy Private Key to remote VM

  1. Copy private key to new file called centos7template01.txt
  2. Type ls to verify file is there
  3. Copy file to remote VM 
  4. Type yes to connect and transfer file
  5. SSH into remote VM (Cent7-07)
  6. Type ls to confirm file copied successfully
  7. Set permission to 600 using: chmod 600 centos7template01.txt

Step 2 SSH from Remote VM to template VM 

  1. Use Private Key to SSH: ssh -i centos7template01.txt root@
  2. Type yes to connect
  3. Successfully connected!

Additional information

Sovlabs Puppet Agent Configuration: How-To - Use SSH keys with Provider Node Credentials

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.