Question

I am using Window machine. and able to execute Fabric commands using Cygwin-Terminal.

The problem which i am facing is that i am not able to set env.key_filename in my Fabric file.

My ssh Key is stored at location 'C:\Program Files (x86)\WinSCP\SSH_Key.ppk' , I am providing my ssh key location in my Fabric file as following.

env.user = 'User1'

env.key_filename = 'C:\Program Files (x86)\WinSCP\SSH_Key.ppk'

And this i strongly believe that i need to copy SSH_Key.ppk file to some other place. But not sure where.

My fabric file location is 'C:\cygwin\home\nikumar\deploy.py'

Was it helpful?

Solution

In Cygwin_Terminal the path to the C: drive is /cygdrive/c/ or the path you would need to use inside cygwin would be

'/cygdrive/c/Program\ Files\ \(x86\)/WinSCP/SSH_Key.ppk'

also you will probably also need to export the ppk to an openssh key using puttygen so openssh can read the file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top