unable to login to freebsd droplet via ssh

Posted March 25, 2015 10k views

I am starting out in digital ocean. I have set up a freebsd droplet, but my credentials are not working for login with ssh. I have not received an email with information. I did set up an rsa key
Please point me to a getting started tutorial.


1 comment
  • Make sure there is no white space in your key where there shouldn’t be any. I noticed that when I copy and pasted my public key I had breaks in the encrypted string as well as in my e-mail. Unfortunately unlike other services like GitHub, which handle bad copy and paste jobs well, Digital Ocean’s wizard does not. Once I fixed my key I was able to log in over SSH.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
7 answers

I figured it out. I had not given putty the location of my private key. Till now I had always used putty with password only.

thanks for your help.

To connect to your FreeBSD droplet you should only use ssh-keys and initial user freebsd.
Please read more here

by Mitchell Anicas
SSH, or secure shell, is a network protocol that provides a secure, encrypted way to communicate with and administer your servers. As SSH is the most common way of working with a FreeBSD server, you will want to familiarize yourself with the different ways that you can authenticate and log in to your server. While there are several ways of logging into a FreeBSD server, this tutorial will focus on setting up and using SSH keys for authentication.

I added a key when I created the droplet, but I am still getting asked for a password. I am trying to access my droplet with putty from an Windows 8.1 computer.

  • Your credentials shouldn’t be working for ssh connection. There is only way to connect to your droplet using freebsd as username and ssh-key.

I tried using freebsd as username. I dont have a password.

To access your DigitalOcean FreeBSD droplet you have to use SSH private/public key combination. You can do that easily with:

ssh -i pathtoyour/privatekey freebsd@IPaddressofyourdroplet

  • I actually have a freebsd box. I tried your suggestion and this is what I got:

    ssh: connect to host port 22: Operation timed out

Applicable tutorials in FreeBSD series:

FreeBSD Series:

Basic SSH tutorial:

List of SSH Tutorials:
SSH-related Tutorials on DigitalOcean

To reiterate, for SSH, do not use your Digital Ocean Credentials. In ssh, use the user <freebsd/>, and the key itself.

If you used a password when generating the key, enter that password. The key can be generated with or without a password.

The wording of your question leads the reader to believe that you are attempting to ssh using the same credentials that you log into with.

You would need to use the differences based on the information

by Justin Ellingwood
FreeBSD is a secure, high-performance operating system that is suitable for a variety of server roles. In this guide, we will cover some basic information about how to get started with a FreeBSD server.
  • Thanks. I have already looked at these tutorials. I will do it again. Just to clarify, I am not a linux user. I use a Windows 8.1 pc. I use putty and putty-gen. I did add an rsa key to my freebsd server upon creation. When I try to login via putty, I have tried freebsd as the user. The ssh terminal still asks me for a password. Am I supposed to input the key itself instead of a password??

thanks for your replies