I want to run a command like:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
My understanding is that ssh-keygen outputs to the home directory. I'm working on a networked computer using Git Bash (Windows, MYSS MINGW64) where the home directory is one I don't have access to. I change the home directory like so:
export HOME=C:/Users/myusername
so now when I enter:
echo $HOME
it says:
C:/Users/myusername
but when I again try to run the ssh-keygen command it runs in the directory that I don't have access to. I've looked through the profile file for some hard coded path but can't find anything. How do I change it to point to a directory that I do have access to?
HOME
doesn't affect the default directory forssh-keygen
). Though specifying the directory explicitly works, I'd be interested to know whyssh-keygen
doesn't just use$HOME/.ssh
asHOME
is currently defined.