Generating SSH Key

Generating SSH Key#

To generate SSH key interactively:

$ ssh-keygen

To generate SSH key without prompt:

$ mkdir -p /root/.ssh
$ chmod 700 /root/.ssh
$ ssh-keygen -f /root/.ssh/id_rsa -N ""