My SSH terminal connections are failing in Cycle with error adding to known hosts file.
SSH terminal connections use a known_hosts file stored in the user’s home directory to store server information when you establish an SSH connection.
Cycle is unable to create/write to the known_hosts file if your user directory does not already have a “.ssh” directory created within it. You will see an error message similar to the one below.
The following steps can be followed to create a “.ssh” directory in your Windows user home directory.
Press Windows key + R to open the run dialog.
Type “cmd.exe” and press Enter or click OK
The command prompt may open in your user’s home directory automatically depending on your operating system and system configuration, or you may need to navigate to your home directory.
Depending on your version of Windows and the system config you may be able to easily navigate to your home directory using the following command.
cd %USERPROFILE%
If that does not work, you may need to enter the entire path of your home directory, replacing <USER_NAME> with your Windows user name.
cd \Users\<USER_NAME>
Run the command below to check your home directory for an existing .ssh directory. You should get a “File Not Found” message. If there is already an existing .ssh directory, then you may be facing a different issue causing your SSH connections to fail.
dir .ssh
Run the command below to create a .ssh directory. You can then run “dir .ssh” to confirm it is created.
mkdir .ssh
Run your feature again. You should not get the same error message indicating Cycle is unable to add to the known hosts file. Cycle will create a known_hosts file in the “.ssh” directory you just created.