search

Home  >  Q&A  >  body text

git - Default directory for ssh key files changed to /.ssh

Use ssh-keygen to generate keys and public keys. The default directory is //.ssh/id_rsa. I manually changed it to ~/.ssh/. When using git push to submit the code for the first time, you need to create a new know_list file. , but this time it prompts that /.ssh/ does not have permissions. How can I let git know that my current key and public key are in the home directory, not the root directory? (PS: No root permissions)

曾经蜡笔没有小新曾经蜡笔没有小新2807 days ago619

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:44:01

    The default configuration file of ssh client is /etc/ssh/ssh_configYou can check whether this file has special configuration

    reply
    0
  • Cancelreply