1
resposta

no such file or directory

Pichau@DESKTOP-RAFA MINGW64 ~/alura/bionic $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Pichau/.ssh/id_rsa): ~/alura/bionic/id_bionic Enter passphrase (empty for no passphrase): Enter same passphrase again: Saving key " ~/alura/bionic/id_bionic" failed: No such file or directory

Como proceder?

1 resposta

Tenta pegar o caminho absoluto desta pasta que você quer salvar a chave. Dentro da pasta executa o comando pwd copia este caminho e cola na hora que pede onde salvar a chave adicionando o nome da chave.

vagrant@ubuntu-focal:~/alura/bionic$ pwd
/home/vagrant/alura/bionic

vagrant@ubuntu-focal:~/alura/bionic$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/vagrant/.ssh/id_rsa): /home/vagrant/alura/bionic/id_bionic