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

Output: Generate output to paste into ~/.ssh/config and gpg2 --import #10

Open
cfcs opened this issue May 4, 2017 · 1 comment
Open

Comments

@cfcs
Copy link

cfcs commented May 4, 2017

gpg2 --import "${output_directory}"/secret.asc
# rememer that it's gpg2 and that plain old 'gpg' doesn't handle ed25519

and

Host *
    User ${OUR_USERNAME}
    IdentityFile ${OUTPUT_DIRECTORY}/id_ed25519

and

cat "${output_directory}"/id_ed25519.pub | ssh HOST tee -a .ssh/authorized_keys
@cfcs cfcs changed the title Output: Generate output to paste into ~.ssh/config and gpg --import Output: Generate output to paste into ~/.ssh/config and gpg --import May 6, 2017
@cfcs cfcs changed the title Output: Generate output to paste into ~/.ssh/config and gpg --import Output: Generate output to paste into ~/.ssh/config and gpg2 --import May 6, 2017
@cfcs
Copy link
Author

cfcs commented May 20, 2017

Load key into ssh-agent from stdin:

#     -c      Indicates that added identities should be subject to confirmation
#             before being used for authentication.  Confirmation is performed
#             by the SSH_ASKPASS program mentioned below.  Successful confirma‐
#             tion is signaled by a zero exit status from the SSH_ASKPASS pro‐
#             gram, rather than text entered into the requester.
#     -k      When loading keys into or deleting keys from the agent, process
#             plain private keys only and skip certificates.

cat ~/.ssh/id_ed25519 | ssh-add -c -k -

Note that for -c you need to pass a SSH_ASKPASS=/usr/bin/ssh-askpass environment variable to ssh-agent, which may not be there.

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

1 participant