mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* ffmpeg: a sentence should not begin with an object pronoun. * img2pdf: fixing a verb tense, and rephrasing to match the original in English. * java,javac: fix verb tenses. * mongo: translating a word that doesn't need to stay in English. * ssh*: translating a word(s) that do(es) not need to stay in English. * ffmpeg,ssh: updating command accordingly to the English version.
36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
# ssh-keygen
|
|
|
|
> Gera chaves SSH usadas para autenticação, logins sem senha e outras finalidades.
|
|
> Mais informações: <https://man.openbsd.org/ssh-keygen>.
|
|
|
|
- Gera uma chave interativamente:
|
|
|
|
`ssh-keygen`
|
|
|
|
- Gera uma chave ed25519 com 32 rounds de função de derivação de chave e salva a chave em um arquivo específico:
|
|
|
|
`ssh-keygen -t {{ed25519}} -a {{32}} -f {{~/.ssh/nome_do_arquivo}}`
|
|
|
|
- Gera uma chave RSA de 4096 bits com um comentário de email:
|
|
|
|
`ssh-keygen -t {{rsa}} -b {{4096}} -C "{{comentário|email}}"`
|
|
|
|
- Remove as chaves de um servidor do arquivo known_hosts (útil quando um servidor conhecido tem uma nova chave):
|
|
|
|
`ssh-keygen -R {{servidor_remoto}}`
|
|
|
|
- Obtém a impressão digital de uma chave em MD5 Hex:
|
|
|
|
`ssh-keygen -l -E {{md5}} -f {{~/.ssh/nome_do_arquivo}}`
|
|
|
|
- Altera a senha de uma chave:
|
|
|
|
`ssh-keygen -p -f {{~/.ssh/nome_do_arquivo}}`
|
|
|
|
- Altera o tipo de formato da chave (por exemplo, de formato OPENSSH para PEM), o arquivo será reescrito no local:
|
|
|
|
`ssh-keygen -p -N "" -m {{PEM}} -f {{~/.ssh/chave_privada_OpenSSH}}`
|
|
|
|
- Obtém a chave pública a partir da chave secreta:
|
|
|
|
`ssh-keygen -y -f {{~/.ssh/chave_privada_OpenSSH}}`
|