When you generate a keypair it automatically generates them in the default location, which the homedir of the user executing ssh-keygen command.
unless you use the
-f flag where you can specify where you want the output key files and name.
Code:
ssh-keygen -f ~/Documents/mykeypair
The following article is a guest-written article from Andy Brooks (aka captain-sensible) about SSH keys.
linux-tips.us
Last edited: