gutiersa
By:
gutiersa

unable to login to freebsd droplet via ssh

March 25, 2015 5.1k views
Logging FreeBSD

I am starting out in digital ocean. I have set up a freebsd droplet, but my digitalocean.com 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.

Thanks

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.

7 Answers

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

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 digitalocean.com 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 myhostname.com port 22: Operation timed out

Applicable tutorials in FreeBSD series:
https://www.digitalocean.com/community/tutorials/how-to-get-started-with-freebsd-10-1

https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-freebsd-server

FreeBSD Series:
https://www.digitalocean.com/community/tutorial_series/getting-started-with-freebsd

Basic SSH tutorial:
https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh

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 https://cloud.digitalocean.com with.

You would need to use the differences based on the information

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...
  • 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??

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.

Have another answer? Share your knowledge.