Add SSH private key to the ssh-agent
Next command doesn't work on Win11's PowerShell:
ssh-add ~/.ssh/{private_key_file}
Trying to execute previous command ends with error:
~/.ssh/{private_key_file}: No such file or directory
So, the right way to add ssh private key to the ssh-agent is: firstly you must navigate to folder containing private key and then add private key to ssh-agent
cd ~/.ssh
ssh-add {private_key_file}
Add SSH private key to the ssh-agent
Next command doesn't work on Win11's PowerShell:
ssh-add ~/.ssh/{private_key_file}
Trying to execute previous command ends with error:
~/.ssh/{private_key_file}: No such file or directory
So, the right way to add ssh private key to the ssh-agent is: firstly you must navigate to folder containing private key and then add private key to ssh-agent
cd ~/.ssh
ssh-add {private_key_file}