I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder

32 Views Asked by At

I'm new to GitHub and I'm trying to set up my SSH keys by following the steps in https://docs.github.com/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#auto-launching-ssh-agent-on-git-for-windows to auto-start ssh-agent in Windows.

But I'm already stuck in the first step "You can run ssh-agent automatically when you open bash or Git shell. Copy the following lines and paste them into your ~/.profile or ~/.bashrc file in Git shell" because my .ssh folder only has the ff files:

  • id_ed25519

  • id_ed25519.pub

  • known_hosts

  • known_hosts.old

I tried to look for similar files outside of my C:/Users/<user>/.ssh folder, and I found these:

  • .bash_history

  • .gitconfig

Is that correct? Or should I create the .profile or .bashrc file by myself? I'm new to this, so any extra explanations would be really helpful. Thank you!

0

There are 0 best solutions below