O comando ssh-keygen é uma ferramenta poderosa para gerar pares de chaves SSH no Linux. Este Gist irá explicar o comando abaixo:
ssh-keygen -t rsa -f root-virtual-machine -C root -b 2048
-t rsa
: Especifica o tipo de chave a ser gerada. Neste caso, estamos gerando uma chave RSA.-f root-virtual-machine
: Especifica o nome do arquivo onde a chave será salva. Neste exemplo, o nome do arquivo é "root-virtual-machine".