Windows – Create a new known_hosts file for openSSH in windows

known-hostsopensshsshwindows

So i have OpenSSH in windows 7 at a university and i am basicly having this problem:

When i first use SSH it is trying to create the known_hosts file on my university network drive H:

enter image description here

But this is not what i want. How can i define a knew location for the known_hosts file and get it to generate there?

Best Answer

Set the environment variable HOME to a directory in which you want the .ssh directory to be stored.

Related Question