Dax T Games
Dax T Games
Yeah I would not do it that way. Cmder has init scripts you can add that stuff to in your case it would be `$CMDER_ROOT/config/user_profile.sh` Add: ``` export SSH_USER_HOME="$CMDER_ROOT/.ssh" ```...
If you edited `$CMDER_ROOT/config/user_profile.sh` and are using `bash::bash` then `export` is indeed a valid command.
For `cmd::cmder` edit `%CMDER_ROOT%/config/user_profile.cmd` and use `set` instead of `export`. You can also do the same for `PowerShell::PowerShell` by editing `$env:CMDER_ROOT\config\user_profile.ps1`. ``` $env:SSH_USER_HOME = "$env:CMDER_ROOT\.ssh" ```
I never said what you were trying to do would actually work. I have never even considered moving my `~/.ssh` folder as it is against well established convention. I was...
Symlink %cmder_root%\\config\\.ssh to %userprofile%\\.ssh and put ssh config and keys in %cmder_root%\\config\\.ssh Just a thought. I have not tested it.
Below shows symlinks on Windows:  1. You need to enable `Developer Mode` in Control Panel or be an administator.  3. Add the below to use native windows symlinks...
> sadly I don't have symlink (i am working with windows), i tried with `mklink /D %cmder_root%\config\.ssh %userprofile%\.ssh` and it doesn't work either, it says that can't create a file...
essentially this would make the files present in both locations. editing/adding files to one location would edit/add in both locations.
It does work, If it works for you: 
@DarioArDi The only thing I know of is using a `~/.ssh/config` file and use the `IdentityFile` key to point to where your key is as shown below: https://stackoverflow.com/questions/84096/setting-the-default-ssh-key-location