You are not logged in.
Have recently updated my ssh keys for use with git, only when I commit I get the following message.
Warning: Identity file /home/mrgreen/.ssh/id_rsa not accessible: No such file or directory.
I have switched to using id_ed25519.pub [newly created key].
Made changes in config [.ssh/config] to reflect this:
User git
Hostname gitlab.com
IdentityFile ~/.ssh/id_ed25519
TCPKeepAlive yes
IdentitiesOnly yes
Am guessing I need to edit /etc/ssh/config... but I am not sure?
Last edited by Mr Green (2024-03-30 14:31:03)
Mr Green I like Landuke!
Offline
AFAIU the directives in ssh_config starts with Host
Try:
Host gitlab.com
User git
Hostname gitlab.com <-- May not be necessary
IdentityFile ~/.ssh/id_ed25519
TCPKeepAlive yes
IdentitiesOnly yes
* Good formatted problem description will cause good and quick solution
* Please don't forget to mark as [SOLVED].
Offline
Still get that error message, I know file is not present in ~/.ssh... maybe a global thing?
Mr Green I like Landuke!
Offline
* The error is pretty straight forward (the file does not exist). Does it?
* What happen if you specifically pass ssh -i path/to/private/key ...?
* Good formatted problem description will cause good and quick solution
* Please don't forget to mark as [SOLVED].
Offline
Ran:
ssh-keygen -t rsa
And now file exists it seems to be working.
Guess I need to be a bit more careful ssh in the future....
Thanks for your help, marking as solved
Mr Green I like Landuke!
Offline