Create a new known_hosts file for openSSH in windows

10,687

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

Share:
10,687

Related videos on Youtube

Fantastic Mr Fox
Author by

Fantastic Mr Fox

Updated on September 18, 2022

Comments

  • Fantastic Mr Fox
    Fantastic Mr Fox over 1 year

    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?

  • Fantastic Mr Fox
    Fantastic Mr Fox almost 12 years
    How do i set and check HOME?
  • Fantastic Mr Fox
    Fantastic Mr Fox almost 12 years
    and are you sure the environment variable is home because %HOME% is not recognised.
  • Fantastic Mr Fox
    Fantastic Mr Fox almost 12 years
    i cant cd to %HOME% it says that it is not a recognised path.
  • Fran
    Fran almost 12 years
    Does echo %HOME% show you the value of the variable? If so, the variable is set. Get that working, and the rest should work too.