Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

SSH on Ubuntu 20.04 Windows 10 Subsystem ignores IdentityFile specified in .ssh/config

$
0
0

SSH flat out ignores the identity file I've specified in my .ssh/config file and will not use that key to authenticate with my work server. This is my config file:

Host *    # This is to fix check_host_cert: certificate signature algorithm ssh-rsa: signature algorithm not supported    # I tried putting this under *.work but it didn't work, so I put it under *    CASignatureAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsaHost *.work    ProxyJump bastion.work.com    User myusername    IdentityFile ~/.ssh/workCompression yes

This exact same configuration works on my Ubuntu 18.04 installation but will not work on on my Ubuntu 20.04 Windows 10 subsystem at all. I ran ssh with -vvv and I can see that it reads the config file and recognises the key but doesn't try it:

debug1: Reading configuration data /home/myusername/.ssh/configdebug1: /home/myusername/.ssh/config line 1: Applying options for *debug1: /home/myusername/.ssh/config line 4: Applying options for *.workdebug1: Reading configuration data /etc/ssh/ssh_config...debug1: identity file /home/myusername/.ssh/work type 0debug1: identity file /home/myusername/.ssh/work-cert type -1...debug1: Next authentication method: publickeydebug1: Trying private key: /home/myusername/.ssh/id_rsadebug3: no such identity: /home/myusername/.ssh/id_rsa: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_dsadebug3: no such identity: /home/myusername/.ssh/id_dsa: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_ecdsadebug3: no such identity: /home/myusername/.ssh/id_ecdsa: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_ecdsa_skdebug3: no such identity: /home/myusername/.ssh/id_ecdsa_sk: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_ed25519debug3: no such identity: /home/myusername/.ssh/id_ed25519: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_ed25519_skdebug3: no such identity: /home/myusername/.ssh/id_ed25519_sk: No such file or directorydebug1: Trying private key: /home/myusername/.ssh/id_xmssdebug3: no such identity: /home/myusername/.ssh/id_xmss: No such file or directorydebug2: we did not send a packet, disable methoddebug1: No more authentication methods to try.myusername@bastion.work.com: Permission denied (publickey).kex_exchange_identification: Connection closed by remote host

It just never tries /home/myusername/.ssh/work. How can I explicitly ask ssh to use it?

EDIT: From today (01/07/20) the exact same issue has started happening on my Ubuntu 18.04 installation too. Has something changed in OpenSSL?

EDIT (17/06/21): I should mention that sometime after the issue just happened to disappear on its own, but maybe this question would be useful to other people.


Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>