Could not resolve hostname keygen: Name or service not known

Trying to generate ssh key on my local computer and getting this error for some reason

ssh: Could not resolve hostname keygen: Name or service not known

Can anyone help me? how to fix this…

Can you show the command as well as the error message? Without the command line we can only speculate. And use the </> formatting of course so that we can read it better. Thanks

1 Like

ohh stupid me i was using the wrong command ssh keygen it will be ssh-keygen

Happens to all of us. Happy to hear you successfully resolved your own problem!