Setting the default ssh key location

前端 未结 2 1001
抹茶落季
抹茶落季 2020-12-23 09:19

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

2条回答
  •  既然无缘
    2020-12-23 09:27

    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:

    IdentityFile ~/.foo/identity
    

    man ssh_config to find other config options.

提交回复
热议问题