diff --git a/rsapi/auth.go b/rsapi/auth.go
index <HASH>..<HASH> 100644
--- a/rsapi/auth.go
+++ b/rsapi/auth.go
@@ -362,7 +362,7 @@ func (a *ssAuthenticator) SetHost(host string) {
 		a.host = host
 		return
 	}
-	elems[len(elems)-2] = strings.Replace(elems[len(elems)-2], "us", "selfservice", 1)
+	elems[len(elems)-2] = "selfservice"
 	ssLoginHostPrefix := strings.Join(elems, "-")
 	a.host = strings.Join(append([]string{ssLoginHostPrefix}, urlElems[1:]...), ".")
 }
Fix SS host substitution for SS minimoo hosts

Not all endpoints use the 'us-3.rightscale.com' style host -- some
minimoos in particular use ss2-moo-<I>.test.rightscale.com. This commit
removes the assumption that there will be a 'us' substring in the login
host. Fixes #<I>.