ssh key passphrase works in windows but not in linux

I’m working to a project in git.
In Windows, I’m using git extensions to manage this project, and to access to the public repository they gave me a .ppk key. I load it into git extension, with the passphrase that they gave me, and it works.

Now I set a linux (ubuntu-32bit) virtual machine, and I want to access also from this machine to the repository.

  • Git cat staged file to stdout
  • Android studio shelved changes disappeared, not even in the .idea/shelf directory
  • How would I expand the 'scope' of an existing git repository to a parent directory?
  • Lost all my staged but uncommited modifications after git revert --abort command
  • RuntimeError: Model class django_messages.models.Message doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
  • How to count number of commits per file pathname by author in a Git repository?
  • From another thread that I’ve seen in this site, I use, to clone the repository, the following command:

    ssh-agent bash -c 'ssh-add /home/myHome/mykey.ppk; git clone git@serveraddress:project.git'
    

    Then, the shell tells me to insert the passphrase

    Enter passphrase for /home/myHome/mykey.ppk:
    

    But when I insert it, it tells me that’s a bad passphrase. I’ve checked it a lot of times, and I’m sure that I use the same passphrase that I use in windows. So how can I use correctly the key in Linux?

    Thanks in advance for your replies.

  • How to unversion an entire folder?
  • What does GitHub for Windows' “sync” do?
  • dyld: unknown required load command 0x80000022 error with Git installation
  • compare local git branch with remote branch?
  • git push returns “fatal: protocol error: bad line length character”
  • How Do I Pull a Single Commit In Git?
  • One Solution collect form web for “ssh key passphrase works in windows but not in linux”

    The Linux SSH client (typically OpenSSH) can’t read the PPK format used by the Windows SSH client Putty. You need to convert the “PPK” key given to you into an OpenSSH key first. Install “putty” on Linux and use the puttygen command line tool:

    $ sudo aptitude install putty
    $ mkdir -p ~/.ssh
    $ puttygen ~/mykey.ppk -o ~/.ssh/id_rsa -O private-openssh
    

    Enter your passphrase, and you’ll get an OpenSSH-compatible key in the standard location ~/.ssh/id_rsa. Afterwards you can just use ssh-add(without any arguments!) to add this key to the SSH agent.

    Alternatively you can use the PUTTYgen program provided by putty on Windows.

    Git Baby is a git and github fan, let's start git clone.