Connecting via Mac os x after I set up the ssh through Putty

August 7, 2016 262 views
DigitalOcean Getting Started Configuration Management Ubuntu 16.04

So I set up my droplet with a SSH key with putty on my windows 7 machine. Now when I try to log onto it with my macbook it says that my password is wrong. Though I know for a fact it is correct. Can I just not go from one to the other? I have tried to look it up but haven't found a definite answer. Thanks

1 comment
  • I have tried following the steps on this digital ocean tutorial, but it doesn't say anything about trying to connect via os x when you already have it set up from a different machine. I don't think it should really matter as long as I have the correct password that I linked to the SSH key, correct?

    If you have recently created a DigitalOcean Droplet, and you are new to working with Linux servers, you will need to learn how to use SSH to connect to and manage it. SSH, which stands for Secure Shell, is an encrypted network protocol that is used to for, among other...
1 Answer


PuTTy and other SSH clients are simply a way to connect to the OpenSSH daemon on your Droplet. It doesn't matter which client you used to set up your Droplet, so you should be able to access it from your macbook as well.

However, if you generated the SSH key using PuTTygen, you will need to convert it to the OpenSSH format as PuTTy saves its private keys in its own format. In order to do that, open your PuTTy key in PuTTygen and click on Export OpenSSH under Conversions. Then, transfer the resulting file to your macbook.

You can use it by passing it along with -i to the ssh command, like this:

ssh -i /path/to/exported/key user@ip

Or, move it to ~/.ssh/id_rsa, making sure that you don't overwrite any existing key that you might already have and need, and ssh should automatically pick it up and use it without having to pass the -i option to it.

Have another answer? Share your knowledge.