Am I the only one for whom SSH configuration still doesn't seem to write and I still get the same error? I always have the same error in log
I'm on version 2.18.1 on MacOS.
2025-02-22 22:05:18,968 [2617654] INFO - CoderCLIManager - Configuring SSH config at /Users/xxxx/.ssh/config2025-02-22 22:05:18,969 [2617655] INFO - CoderCLIManager - No workspaces and no existing config blocks to remove2025-02-22 22:05:18,969 [2617655] INFO - CoderWorkspaceProjectIDEStepView - Connecting with SSH and uploading worker if missing... (attempt 1)2025-02-22 22:05:18,970 [2617656] INFO - CoderSettings - Resolving binary for MAC ARM642025-02-22 22:05:18,970 [2617656] INFO - CoderSettings - Resolving binary for MAC ARM642025-02-22 22:05:18,988 [2617674] INFO - CoderCLIManager - `/Users/xxxx/Library/Application Support/coder-gateway/xxxxxxxx/coder-darwin-arm64 version --output json`: { "version": "v2.19.0+2f32b11", "build_time": "2025-02-04T07:53:51Z", "external_url": "https://github.com/coder/coder/commit/2f32b11831a236ed550f35b2296b8f948eb64f4e", "slim": true, "agpl": false, "boring_crypto": false}2025-02-22 22:05:18,988 [2617674] INFO - net.schmizz.sshj.transport.random.JCERandom - Creating new SecureRandom.2025-02-22 22:05:19,082 [2617768] WARN - #c.i.s.i.s.sshj - Failed to connect. Brief info: SSH connection to coder@coder-jetbrains-coder.xxxxxxx:22 * With altered connection settings: - authMethods: PublicKey(privateKeys=[/Users/xxxx/.ssh/id_rsa, /Users/xxxx/.ssh/id_ecdsa, /Users/xxxx/.ssh/id_ecdsa_sk, /Users/xxxx/.ssh/id_ed25519, /Users/xxxx/.ssh/id_ed25519_sk, /Users/xxxx/.ssh/id_xmss, /Users/xxxxx/.ssh/id_dsa], agent=ALL), Password, KeyboardInteractive - ciphers: [chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com] - environmentVariables: [Inherit(glob=LANG), Inherit(glob=LC_*)] - hostKeyAlgorithms: [ssh-ed25519-cert-v01@openssh.com, ecdsa-sha2-nistp256-cert-v01@openssh.com, ecdsa-sha2-nistp384-cert-v01@openssh.com, ecdsa-sha2-nistp521-cert-v01@openssh.com, sk-ssh-ed25519-cert-v01@openssh.com, sk-ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-512-cert-v01@openssh.com, rsa-sha2-256-cert-v01@openssh.com, ssh-ed25519, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, sk-ssh-ed25519@openssh.com, sk-ecdsa-sha2-nistp256@openssh.com, rsa-sha2-512, rsa-sha2-256] - hostKeyVerifier: OpenSSH-like host key verifier (knownHostsFile=[/Users/xxx/.ssh/known_hosts, /Users/xxxxxx/.ssh/known_hosts2, /private/etc/ssh/ssh_known_hosts, /private/etc/ssh/ssh_known_hosts2], strictHostKeyChecking=ASK, hashKnownHosts=false) - kexAlgorithms: [sntrup761x25519-sha512@openssh.com, curve25519-sha256, curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256, diffie-hellman-group16-sha512, diffie-hellman-group18-sha512, diffie-hellman-group14-sha256] - macs: [umac-64-etm@openssh.com, umac-128-etm@openssh.com, hmac-sha2-256-etm@openssh.com, hmac-sha2-512-etm@openssh.com, hmac-sha1-etm@openssh.com, umac-64@openssh.com, umac-128@openssh.com, hmac-sha2-256, hmac-sha2-512, hmac-sha1] - user: coder * With auth agent ssh-agent[/private/tmp/com.apple.launchd.OE9ZLgkVBb/Listeners]java.net.UnknownHostException: coder-jetbrains-coder.xxxxxxxx.devat java.base/java.net.InetAddress$CachedLookup.get(InetAddress.java:988)at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818)at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.connectPlatform(SshjConnectionUtil.kt:854)at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ$lambda$13(SshjConnectionUtil.kt:222)at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:109)at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:103)at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)at java.base/java.lang.Thread.run(Thread.java:1583)
Uh oh!
There was an error while loading.Please reload this page.
If a user didn't have a jetbrain's plugin block in their ssh config, we accidentally skipped writing one because before wildcards not having any listed workspaces was equivalent to not having anything to write into the config. This fixes that by checking specifically if the contents of the block are empty.
fixes#534