Using SSH keys in Termux for Git


I need to install a couple of packages.

pkg install openssl-tool
pkg install openssh

Set up your ssh key. I use passphrases.

To have in your git config be recognised by ssh, and to use the particular key for gitlab:

	User git
	Port 22
	IdentityFile ~/.ssh/gitlab

To make sure you don't have to keep entering it:

Host *
	AddKeysToAgent yes

And at the start of new Termux session:

eval $(ssh-agent)

1. Elsewhere

1.1. In my garden

Notes that link to this note (AKA backlinks).

1.3. Mentions

This page last updated: 2023-11-12 Sun 08:00. Map. Recent changes. Source. Peer Production License.