# Issue with ssh user other than root

**URL:** <https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772>\
**Category:** Rancher 1.x\
**Created:** [December 2, 2016, 10:30am UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772 "2016-12-02T10:30:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihackalot](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ihackalot/32/1901_2.png) [@ihackalot](https://forums.suse.com/u/ihackalot)\
**Post date:** [December 2, 2016, 10:30am UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/1 "2016-12-02T10:30:13Z")

</div>

I’m trying to add a DigitalOcean host but the only way to succeed is leaving ssh user set to root, or I’ll get a

> Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 2, 2016, 3:56pm UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/2 "2016-12-02T15:56:19Z")

</div>

The username field is for your to tell docker-machine what username is needed to login to the host and install docker/rancher agent. It is not a choice for your to pick the username you’d like it to be, the user is defined by the OS image DigitalOcean deploys. Most (but not all) of them are `root` so that’s why it’s the default. If you put in the wrong name, SSHing to the host fails and it cannot finish being provisioned, then machine gives up after 60 tries.

---

<div class="post-metadata">

**Author:** ![ihackalot](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ihackalot/32/1901_2.png) [@ihackalot](https://forums.suse.com/u/ihackalot)\
**Post date:** [December 2, 2016, 4:19pm UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/3 "2016-12-02T16:19:57Z")

</div>

Ohhh… that makes sense, thank you @vincent!  
Since Rancher would provision the whole node without intervention I supposed it would set the user however I inputed. Especially because on videos and tutorials you would often see this _rancher_ user which doesn’t look like a default.

So do you think _root_ is just fine or is there a way to set it differently?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [December 2, 2016, 7:05pm UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/4 "2016-12-02T19:05:28Z")

</div>

The provider (DigitalOcean) creates the OS images and sets the username that is provisioned… The result of calling the DO API and saying to create a droplet is a VM has a user named `root` with the SSH key tied to it. There’s no way for us to control that.

DO generally sets it to `root` for everything, but CoreOS is always `core` so they follow that. `rancher` would be for for RancherOS.

---

<div class="post-metadata">

**Author:** ![ranjith](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@ranjith](https://forums.suse.com/u/ranjith)\
**Post date:** [January 24, 2018, 10:19am UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/5 "2018-01-24T10:19:04Z")

</div>

The same problem arises for me while adding host from Opennebula driver.  
Error:  
2018-01-24 09:55:43,106 ERROR [:] [] [] [] [ecutorService-4] [.e.s.i.ProcessInstanceDispatcherImpl] Unknown exception running process [host.provision:209] on [9] io.cattle.platform.util.exception.ExecutionException: Error in driver during machine creation: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded

What is the solution?

---

<div class="post-metadata">

**Author:** ![samrocksc](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/samrocksc/32/3674_2.png) [@samrocksc](https://forums.suse.com/u/samrocksc)\
**Post date:** [February 14, 2018, 6:10pm UTC](https://forums.suse.com/t/issue-with-ssh-user-other-than-root/4772/6 "2018-02-14T18:10:44Z")

</div>

CoreOS Containers: core  
rancherOS Containers: rancher  
Ubuntu Containers: root
