shithub: wiki.9front.org

ref: 89e95268e95255fe126bd29fbf9bc3f658fefeb4
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.