Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage SSH keys for a pair-programming account... #22

Open
docwhat opened this issue Jan 25, 2013 · 2 comments
Open

Manage SSH keys for a pair-programming account... #22

docwhat opened this issue Jan 25, 2013 · 2 comments

Comments

@docwhat
Copy link

docwhat commented Jan 25, 2013

It'd be nice if I could store SSH .pub files someplace (e.g. ~/.wemux/ssh_keys/) and have a wemux command that would generate an authorized_keys file.

The individual lines should look something like this:

command="/usr/local/bin/wemux-authorized-keys",no-port-forwarding,no-X11-forwarding ssh-rsa AAAA...[rest of ssh public key]...== [email protected]

The wemux-authorized-keys script would mainly just be something like this:

#!/bin/bash

set -eu
export PATH="/usr/local/bin:${PATH}" # This makes sure tmux can be found (it's in /usr/local/bin)
exec wemux attach

This way, when someone ssh's into that account, they'll either:

  • Attach to a running wemux.
  • Get a message that wemux isn't running a sessions and be logged out.

Then you just keep all the ssh pub-keys in that directory for all the people you pair with.

Ciao!

@blueyed
Copy link

blueyed commented Oct 14, 2015

What would be the benefit compared to directly managing it in /home/pair/.ssh/authorized_keys, and use a command there to start wemux in (possibly different modes per user)?

@docwhat
Copy link
Author

docwhat commented Oct 15, 2015

It would be nice to have a tool to do it to make it easier.

In addition, a common secure command to manage starting sessions would be good.

I have a hacky solution that uses apple script to ask if it is okay for someone to pair.

But I hoped there was a built in solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants