Current time: 07-28-2017, 07:56 AM Hello There, Guest! (LoginRegister)

Post Reply 
Unable to ssh in to new Debian DC instance
06-01-2017, 03:57 PM
Post: #1
Unable to ssh in to new Debian DC instance
Laptop: ssh-keygen -t rsa -f cloud.key
Generating public/private rsa key pair.
Your identification has been saved in cloud.key.
Your public key has been saved in cloud.key.pub.

DC control panel: import key pair
DC control panel: named key pair "newkey"
Laptop: open cloud.key.pub in text editor, copy, paste into DC control panel, everything ok
Laptop: ssh -i ~/.ssh/cloud.key debian@111.222.333.444

That's what I'm doing. It repeatedly asks me for a password, and according to DH support, this is a sign something is failing somewhere... it should not ask for a pw but instead just kick me into a shell session as user 'debian'.

Any thoughts? Support seems to be running out of gas on getting back to me.
Find all posts by this user
Quote this message in a reply
06-01-2017, 04:29 PM
Post: #2
RE: Unable to ssh in to new Debian DC instance
Are you sure that when you created the virtual machine you have added the key to it? It's quite common for people to miss the step. Try creating the machine from https://cloud.dreamhost.com and see if you still have that issue.

Edit: remember that you cannot inject the key into a running machine. You will have to destroy and re-create it.
Find all posts by this user
Quote this message in a reply
06-01-2017, 05:30 PM
Post: #3
RE: Unable to ssh in to new Debian DC instance
Tried two more servers created at cloud.dreamhost.com and get the same result... asks for a pw.

The first I tried creating with an existing ssh key.

The second I tried creating with importing an ssh key.

I'm using Mac Terminal app.

ssh debian@208.113.130.109
ssh debian@208.113.128.231
ssh -i ~/.ssh/cloud.key debian@208.113.128.231
ssh -i ~/.ssh/cloud.key debian@208.113.130.109

...all the same. Asks for pw.
Find all posts by this user
Quote this message in a reply
06-01-2017, 07:58 PM (This post was last modified: 06-01-2017 08:35 PM by instamattic.)
Post: #4
RE: Unable to ssh in to new Debian DC instance
I have ten billion for anyone who can spin up a server and get into it right away via ssh on a Mac, and can write here the steps you do to make it work.

I must have set some kind of record. I just spun up 10 servers, most Debian, some Ubuntu. The exercises all end with asking for a pw or Permission denied (publickey).

I tried importing ssh key during creation, and using existing ssh keys, changing the arguments in my ssh command correspondingly. No dice.

I haven't heard from DH support in 10 hours now.

Phonecall time?
Find all posts by this user
Quote this message in a reply
06-05-2017, 12:10 PM
Post: #5
RE: Unable to ssh in to new Debian DC instance
Here are the steps I would suggest:

  1. Create an ssh key on your Mac: See step 1 on this guide https://help.dreamhost.com/hc/en-us/arti...-and-Linux
  2. Upload the newly created public key to DreamCompute, follow this guide https://help.dreamhost.com/hc/en-us/arti...the-web-UI
  3. Create a new Debian machine and make sure you assign the SSH key to the machine. IT's easy to forget this step.
  4. Connect to the newly created VM, the default username is debian for Debian OS, ubuntu for Ubuntu.

My advice is do not create a key using the DreamCompute control panel: trust your desktop tools, make your key and learn how to use them to connect to all your servers because they're so much more convenient than passwords (see https://www.dreamhost.com/blog/2016/05/2...use-ssh/).
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: