# Dynamically  access  instances  unable to change the login user from root to centos

**URL:** <https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792>\
**Category:** Ansible Project\
**Created:** [February 21, 2017, 8:34pm UTC](https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792 "2017-02-21T20:34:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey\_Brewster](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Jeffrey\_Brewster](https://forum.ansible.com/u/Jeffrey_Brewster)\
**Post date:** [February 21, 2017, 8:34pm UTC](https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792/1 "2017-02-21T20:34:31Z")

</div>

Hi all,

I’m able to add the host dynamically however I’m not able to run yum install commands on it because of user issues:

Error:

command scp -v -t 'Please login as the user:

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Brewster](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Jeffrey\_Brewster](https://forum.ansible.com/u/Jeffrey_Brewster)\
**Post date:** [February 23, 2017, 7:05pm UTC](https://forum.ansible.com/t/dynamically-access-instances-unable-to-change-the-login-user-from-root-to-centos/23792/2 "2017-02-23T19:05:21Z")

</div>

Looking at this it is most likely an issue with remote\_user
