SSH-keygen Returns Error on Key Creation “No Such File or Directory”

Case:  Running ssh-keygen prompts “Enter file in which to save the key”. Entering a custom location returns “no such file or directory” error.

Solution

Specify the custom location as a command parameter. Example:

ssh-keygen -t rsa -b 4096 -f /path/to/key

Source

Did this solve your issue?