ssh-keygen
command provides an interactive command line interface forgenerating both the public and private keys. Invoke ssh-keygen
with thefollowing -t
and -b
arguments to ensure we get a 4096 bit RSA key.Optionally, you can also specify your email address with -C
(otherwiseone will be generated off your current Linux account):-o
option was introduced in 2014; if this command fails for you, simply remove the -o
option).pub
appended.ssh-keygen
command resources: