Getting “Enter passphrase for key” for a linux machine from shell script [duplicate]
Clash Royale CLAN TAG#URR8PPP
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.
openssh
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.
add a comment |
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.
openssh
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.
add a comment |
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.
openssh
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
openssh
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
Thanks, Panki. Now I am through.
– JYOTI PRAKASH MALLICK
Feb 27 at 9:18
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
Thanks, Panki. Now I am through.
– JYOTI PRAKASH MALLICK
Feb 27 at 9:18
add a comment |
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
Thanks, Panki. Now I am through.
– JYOTI PRAKASH MALLICK
Feb 27 at 9:18
add a comment |
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
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
answered Feb 27 at 8:49
PankiPanki
810412
810412
Thanks, Panki. Now I am through.
– JYOTI PRAKASH MALLICK
Feb 27 at 9:18
add a comment |
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
add a comment |