You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the report. I think as works differently than you expect.
Using as, the connection is still established using the default user. In your case, the default user is vagrant (based on $USER, I assume).
It's only after the connection is established that sudo -u [USER] is used to run the command "as" that user.
If you want to change the user that is used for the actual SSH connection, then you should specify that user as part of the host using user@host syntax, like this:
I see! I was getting crazy trying to figure out what was going on. I don't see that in the README, can this be considered a bug in the documentation? Is it something that can lead to confusion or it was just me?
Yes, I can imagine that would be confusing. Would you mind suggesting some edits? You can press the edit button (pencil icon) on either the README or the EXAMPLES and it will automatically create a pull request that I can review. Thanks!
Activity
mattbrictson commentedon Jul 19, 2016
Hi, thanks for the report. I think
asworks differently than you expect.Using
as, the connection is still established using the default user. In your case, the default user isvagrant(based on$USER, I assume).It's only after the connection is established that
sudo -u [USER]is used to run the command "as" that user.If you want to change the user that is used for the actual SSH connection, then you should specify that user as part of the host using user@host syntax, like this:
juanbrein commentedon Jul 19, 2016
I see! I was getting crazy trying to figure out what was going on. I don't see that in the README, can this be considered a bug in the documentation? Is it something that can lead to confusion or it was just me?
Thanks anyway for the clarification!
mattbrictson commentedon Jul 19, 2016
Yes, I can imagine that would be confusing. Would you mind suggesting some edits? You can press the edit button (pencil icon) on either the README or the EXAMPLES and it will automatically create a pull request that I can review. Thanks!
juanbrein commentedon Jul 19, 2016
Sure thing!
On Tue, Jul 19, 2016 at 4:33 PM, Matt Brictson notifications@github.com
wrote:
leehambley commentedon Aug 9, 2016
bump @juanbrein - were you able to make some edits to the documentation to clarify this?
juanbrein commentedon Aug 10, 2016
Sorry I'm on holidays, but will pick it up when back. Probably on Monday.
Thanks!
On Tue, Aug 9, 2016 at 9:57 AM, Lee Hambley notifications@github.com
wrote: