Sunday, October 07, 2018

How To Sftp Into Cloud VMs via Private Key

Symptom:

   Assume we have already putty into the VMs well with key pairs. We need to use sftp to upload files into cloud VMs. We have to use public/private key pair to login the OS


Solution:


  • First we need to export openssh priviate keys from PUTTYgen
  • Load your private key via puttygen
  • Go to Conversions->Export OpenSSH and export your private key (ie d:\myprivatekey)
  • Then use sftp -oIdentityFile=myprivatekey opc@<hostname or ip>
  • sftp>put  <file>

No comments:

Post a Comment