ssh will look for its keys by default in the ~/.ssh folder. I want to force it to always look in another location.
The workaround I'm using is to add the keys from the non-standard location to the agent:
ssh-agent
ssh-add /path/to/where/keys/really/are/id_rsa
(on Linux and MingW32 shell on Windows)
If you are only looking to point to a different location for you identity file, the you can modify your ~/.ssh/config file with the following entry:
man ssh_config
to find other config options.The location of the file is /root/.ssh directory with the name "authorized_keys", usually it is hidden for the security reasons. * if you use the puTTy and command line, use: #cd ~/.ssh and then edit the "authorized_keys" file with vi editor. Also refer, type #man ssh_config will provide more options (if necessary) Hope this helps.
man ssh
gives me this options would could be useful.So you could create an alias in your bash config with something like
I haven't looked into a ssh configuration file, but like the
-i
option this too could be aliased