im try connect to my server using ubuntu terminal

ssh -p 2222 -i mypublickey.ppk username@ip

then its ask "Enter passphrase for key 'mypublickey.ppk':"

Im entering my password but its always wrong then i got error Permission denide (publickey).

i have no problem if connect from Putty ubuntu or windows

  • 1
    .ppk files are usually PuTTY keys, which are not generally understood by other SSH implementations. If your VPS is using OpenSSH then you will need to convert the ppk file to OpenSSH format. Jan 28, 2016 at 13:08

1 Answer 1


You need to convert the PPK key to openssh format. It is quite simple even on Ubuntu:

  • Install putty tools: sudo apt-get install putty-tools
  • Convert puttygen mypublickey.ppk -O private-openssh -o mypublickey

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.