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

feat(termux): GitHub ssh enhancements #50

Open
practicalli-johnny opened this issue Jun 30, 2024 · 0 comments
Open

feat(termux): GitHub ssh enhancements #50

practicalli-johnny opened this issue Jun 30, 2024 · 0 comments
Assignees
Labels

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Jun 30, 2024

Adding a local SSH public key to GitHub account

 termux-clipboard-set < $HOME/.ssh/id_rsa.pub && xdg-open https://github.com/settings/keys

Cache the SSH key
Termux doesn't run ssh-agent but does support
SSH key caching using the ssha command

This command seems to cache for ssh connection but not for git command.

Add key per termux session (untested)

Run the ssh agent manually and add a private key, entering the keys passphrase when prompted.

ssh-agent && \
eval $(ssh-agent) && \
ssh-add ~/.ssh/engineering

Git clients should now use the agent to unlock the key passphrase automatically, removing the need to enter the passphrase each time.

Once a Termux session has ended or a new one created, the agent is no longer running and Git commands will prompt for the passphrase (or the agent is started and key added again).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant