shithub: docs.9front.org

ref: dc4130953531aad5ddeb7ff0bc3cb10fda7d35f1
dir: /ssh.md/

View raw version
# ssh(1)

Do you want to clone a repo with git+ssh? I sure do.
Are you a dummy? I sure am.

## Generate RSA keys for SSH

RSA is an asymmetric key.  Keep your private key secret, but you can
share the public key for people to encrypt messages that only you can
decode with the private key.

	auth/rsagen -t 'service=ssh' >$home/lib/sshkey # generate private key
	auth/rsa2ssh $home/lib/sshkey >$home/lib/sshkey.pub # generate public key, if you need to share it
	cat $home/lib/sshkey >/mnt/factotum/ctl # put the private key in the password manager

And SSH should Just Werk™.

## triple dog dare you

Generating the key privately is left as an exercise to the reader.

Putting the private key in a secure location is left as an exercise to
the reader.

Automatically loading the key into factotum is left as an exercise to
the reader.