Getting “Enter passphrase for key” for a linux machine from shell script [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0
















This question already has an answer here:



  • Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

    1 answer



Context: Want to automate a process which requires a connection to Linux vm machine from code running on AWS cloud.



Code Snippet:



#!/bin/sh
ssh -i LinuxVM.ppk testuser@<ipadress> 'df -h'.


Result: When I am running the above shell script I am getting an error "Enter passphrase for key 'LinuxVM.ppk':"



The same PPK file I am using to connect the remote vm through 'putty' and I am through.



While creating the PPK from puttygen file I have not given any phrases.










share|improve this question















marked as duplicate by Rui F Ribeiro, Haxiel, Christopher, Stephen Harris, jimmij Feb 28 at 9:28


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















    0
















    This question already has an answer here:



    • Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

      1 answer



    Context: Want to automate a process which requires a connection to Linux vm machine from code running on AWS cloud.



    Code Snippet:



    #!/bin/sh
    ssh -i LinuxVM.ppk testuser@<ipadress> 'df -h'.


    Result: When I am running the above shell script I am getting an error "Enter passphrase for key 'LinuxVM.ppk':"



    The same PPK file I am using to connect the remote vm through 'putty' and I am through.



    While creating the PPK from puttygen file I have not given any phrases.










    share|improve this question















    marked as duplicate by Rui F Ribeiro, Haxiel, Christopher, Stephen Harris, jimmij Feb 28 at 9:28


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















      0












      0








      0









      This question already has an answer here:



      • Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

        1 answer



      Context: Want to automate a process which requires a connection to Linux vm machine from code running on AWS cloud.



      Code Snippet:



      #!/bin/sh
      ssh -i LinuxVM.ppk testuser@<ipadress> 'df -h'.


      Result: When I am running the above shell script I am getting an error "Enter passphrase for key 'LinuxVM.ppk':"



      The same PPK file I am using to connect the remote vm through 'putty' and I am through.



      While creating the PPK from puttygen file I have not given any phrases.










      share|improve this question

















      This question already has an answer here:



      • Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

        1 answer



      Context: Want to automate a process which requires a connection to Linux vm machine from code running on AWS cloud.



      Code Snippet:



      #!/bin/sh
      ssh -i LinuxVM.ppk testuser@<ipadress> 'df -h'.


      Result: When I am running the above shell script I am getting an error "Enter passphrase for key 'LinuxVM.ppk':"



      The same PPK file I am using to connect the remote vm through 'putty' and I am through.



      While creating the PPK from puttygen file I have not given any phrases.





      This question already has an answer here:



      • Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine

        1 answer







      openssh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 27 at 8:46









      Rui F Ribeiro

      41.7k1483142




      41.7k1483142










      asked Feb 27 at 8:37









      JYOTI PRAKASH MALLICKJYOTI PRAKASH MALLICK

      31




      31




      marked as duplicate by Rui F Ribeiro, Haxiel, Christopher, Stephen Harris, jimmij Feb 28 at 9:28


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by Rui F Ribeiro, Haxiel, Christopher, Stephen Harris, jimmij Feb 28 at 9:28


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          OpenSSH does not support Putty keys (.ppk).



          You will need to convert your key. How this is done is described here:
          https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygen-windows-into-key-pairs-us






          share|improve this answer























          • Thanks, Panki. Now I am through.

            – JYOTI PRAKASH MALLICK
            Feb 27 at 9:18

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          OpenSSH does not support Putty keys (.ppk).



          You will need to convert your key. How this is done is described here:
          https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygen-windows-into-key-pairs-us






          share|improve this answer























          • Thanks, Panki. Now I am through.

            – JYOTI PRAKASH MALLICK
            Feb 27 at 9:18















          0














          OpenSSH does not support Putty keys (.ppk).



          You will need to convert your key. How this is done is described here:
          https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygen-windows-into-key-pairs-us






          share|improve this answer























          • Thanks, Panki. Now I am through.

            – JYOTI PRAKASH MALLICK
            Feb 27 at 9:18













          0












          0








          0







          OpenSSH does not support Putty keys (.ppk).



          You will need to convert your key. How this is done is described here:
          https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygen-windows-into-key-pairs-us






          share|improve this answer













          OpenSSH does not support Putty keys (.ppk).



          You will need to convert your key. How this is done is described here:
          https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygen-windows-into-key-pairs-us







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 27 at 8:49









          PankiPanki

          810412




          810412












          • Thanks, Panki. Now I am through.

            – JYOTI PRAKASH MALLICK
            Feb 27 at 9:18

















          • Thanks, Panki. Now I am through.

            – JYOTI PRAKASH MALLICK
            Feb 27 at 9:18
















          Thanks, Panki. Now I am through.

          – JYOTI PRAKASH MALLICK
          Feb 27 at 9:18





          Thanks, Panki. Now I am through.

          – JYOTI PRAKASH MALLICK
          Feb 27 at 9:18


          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay