4/13/2024 0 Comments Ssh putty saved sessionRemember to start PuTTY pageant and open Git Bash at least once, so that ssh-pageant starts as well (no need to keep Git Bash What is "Windows SSH"? I've search for it, no relevant results came up. Using variables like %TEMP% and %USERNAME% here did not work for me for some reason. SSH_AUTH_SOCK=C:\Users\\AppData\Local\Temp\.ssh-pageant-" with VS Code Remote, you have to add the following env variable via Windows settings: Furthermore, the /tmp path is mapped to your Temp folder in AppData. However: VS Code still calls the Git for Windows ssh from the cmd.exe, not from Git Bash, hence the SSH_AUTH_SOCK is missing, because it is only in Git Bashs env from your. bashrc:Įval $(/usr/bin/ssh-pageant -r -a "/tmp/.ssh-pageant-$USERNAME") In essence the same thing as wsl-ssh-pageant, only for GfW-SSH and not for WSL or Win-SSH. GfW also includes the ssh-pageant tool which makes PuTTY pageant available in Git Bash and GfW-SSH. VS Code will fallback to that one if Win-SSH is not installed: IIRC I removed it via power shell, because I needed the JumpHost support from GfW-SSH. I'm not using the Windows-native OpenSSH client (Win-SSH) at all, instead I use the one bundled with Git for Windows (GfW-SSH). Wsl-ssh-pageant did not work for me, either. TL DR: If you're using the ssh and ssh-pageant bundled with Git for Windows instead of Windows-native OpenSSH, you just need to add the environment variable below via Windows settings. Warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)ĭebug1: Trying private key: C:\\Users\\comph/.ssh/id_rsaĭebug1: Trying private key: C:\\Users\\comph/.ssh/id_dsaĭebug1: Trying private key: C:\\Users\\comph/.ssh/id_ecdsaĭebug1: Trying private key: C:\\Users\\comph/.ssh/id_ed25519ĭebug1: Trying private key: C:\\Users\\comph/.ssh/id_xmssĭebug1: No more authentication methods to try. Debug1: kex_input_ext_info: server-sig-algs=ĭebug1: Authentications that can continue: publickeyĭebug1: Next authentication method: publickeyĭebug1: Offering public key: RSA SHA256:1YCSVQTu+76ieXXnbwKDf97dMkLFJRZb/6h6Shb3Ebs cardno:000607309868ĭebug1: Server accepts key: pkalg rsa-sha2-512 blen 279
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |