Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Finish SSH Username Support#1092

Merged
jonboulle merged 5 commits into
coreos:masterfrom
philk:fleetctl/ssh_username
Jan 20, 2015
Merged

Finish SSH Username Support#1092
jonboulle merged 5 commits into
coreos:masterfrom
philk:fleetctl/ssh_username

Conversation

@philk
Copy link
Copy Markdown
Contributor

@philk philk commented Jan 16, 2015

I needed this functionality and noticed everything seemed pretty close. My last commit here makes all commands work correctly for me.

There is one caveat that I documented in using-the-client. The journal command executes journalctl which needs permission to view the journald files. I added a --sudo flag to the journal command as a solution but I can't say I'm extremely happy with it but it should work by default since the sudo group is passwordless.

Linking:
Updates #1076 to fix comment from #904 and should finally close #536

Jeremy Derr and others added 4 commits January 15, 2015 15:51
Implements --ssh-username to allow fleetctl users to specify arbitrary
usernames on upstream servers.

Fixes coreos#536
Implements --ssh-username for `fleetctl ssh` to allow users to connect
as arbitrary remote users.

fixes coreos#536
journalctl needs to have access to the actual journal files and custom
users aren't part of the `systemd-journal` group. This is a somewhat
hacky way to allow custom users to escalate their priviledges to view
the journal.
Comment thread fleetctl/journal.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not add the shortened version of the flag until we have a library to help make it less cumbersome.

@bcwaldon
Copy link
Copy Markdown
Contributor

LGTM after you remove the -s piece

@philk
Copy link
Copy Markdown
Contributor Author

philk commented Jan 16, 2015

Done

@jonboulle
Copy link
Copy Markdown
Contributor

awesome, lgtm, thanks for finishing this up!

jonboulle added a commit that referenced this pull request Jan 20, 2015
@jonboulle jonboulle merged commit 1035693 into coreos:master Jan 20, 2015
@philk philk deleted the fleetctl/ssh_username branch January 20, 2015 03:15
@bcwaldon bcwaldon added this to the v0.10.0 milestone Apr 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleetctl: make ssh user configurable

4 participants