tilde_expand: No such user \\.ssh\\id_rsa

Quote from moshe on 14/01/2023, 8:40 amProblem
User tries to SSH to remote host and gets the following Error
tilde_expand: No such user \\.ssh\\id_rsa
Solution
check the files under the $HOMEDIR/.ssh
in my case the file config created and maintained by visual studio for remote SSH connections had typo in the hosts entry I'm trying to SSH
remove the lines and re-create them saved the file again solved the issue
Note: This can also effect git and other remote work tools using SSH
Problem
User tries to SSH to remote host and gets the following Error
tilde_expand: No such user \\.ssh\\id_rsa
Solution
check the files under the $HOMEDIR/.ssh
in my case the file config created and maintained by visual studio for remote SSH connections had typo in the hosts entry I'm trying to SSH
remove the lines and re-create them saved the file again solved the issue
Note: This can also effect git and other remote work tools using SSH