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

ENH/WIP: add sshkey setup helper #191

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tangkong
Copy link
Contributor

Description

An attempt at guiding a user through adding an ssh key to their account. A very untested script at the moment, I'm a bit reluctant to wipe my own key / agent settings to test it fully.

Needs a lot of work, but I figured I'd toss it up here for visibility's sake

Needs

  • Testing, in general
  • a bash wrapper that sources pcds-conda for pexpect, gh, click etc

Motivation and Context

Inspired by Zach's ioc-deploy efforts.

Uses a combination of subprocess.run for commands that don't interact, and pexpect.spawn for interactive commands. (Many commands don't print to stdout, but rather directly to the tty, I think)

Initially attempted to use click to make the process more interactive, but click's involvement decreased as development continued.

How Has This Been Tested?

Not really

Where Has This Been Documented?

This PR.

@tangkong tangkong marked this pull request as draft July 25, 2024 16:08
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

Successfully merging this pull request may close these issues.

1 participant