GoLand RunTarget Issue
Answered
I tried to connect to my remote devbox, and got this proble. GoLand got stuck when introspecting SSH server. gonna need some help.
Please sign in to leave a comment.
Hi,
Could you please connect to the SSH server manually and execute the following commands:
Does it work? Could you please elaborate a bit on your environment on SSH?
I'm also having the same problem. The output hangs at "> pwd" in the "New Target: SSH" window at the "3/4. Introspecting SSH server" phase.
It happens whether I use pageant public-key authentication or password authentication.
The server is running: SUSE Linux Enterprise Server 12 SP3
I'm using GoLand 2021.1.1, latest version as of this writing.
Manually running the previously mentioned manual commands yields (the username has been replaced to protect the innocent):
> pwd
/home/johnsmith
> echo ${SHELL} / echo ${GOPATH}
/bin/bash / echo /home/johnsmith/go
> which go
/usr/local/bin/go_1.12.9/bin/go
> go version
go version go1.12.9 linux/amd64
GoLand log file output:
2021-04-30 21:28:24,431 [2343513] INFO - shj.transport.random.JCERandom - Creating new SecureRandom.
2021-04-30 21:28:24,439 [2343521] INFO - shj.transport.random.JCERandom - Creating new SecureRandom.
2021-04-30 21:28:24,442 [2343524] INFO - om.intellij.ssh.impl.sshj.sshj - Already set custom GSSAPI configuration file to jar:file:/C:/Program%20Files/JetBrains/GoLand%20Latest/lib/goland.jar!/com/intellij/ssh/SshjJaas.conf. It may alter GSSAPI authentication.
2021-04-30 21:28:24,445 [2343527] INFO - om.intellij.ssh.impl.sshj.sshj - Already set custom GSSAPI configuration file to jar:file:/C:/Program%20Files/JetBrains/GoLand%20Latest/lib/goland.jar!/com/intellij/ssh/SshjJaas.conf. It may alter GSSAPI authentication.
2021-04-30 21:28:24,508 [2343590] INFO - z.sshj.transport.TransportImpl - Client identity string: SSH-2.0-SSHJ_0.31.0
2021-04-30 21:28:24,567 [2343649] INFO - z.sshj.transport.TransportImpl - Server identity string: SSH-2.0-OpenSSH_7.2
2021-04-30 21:28:25,070 [2344152] INFO - om.intellij.ssh.impl.sshj.sshj - Authentication log: SSH connection to johnsmith@ddd######.ccccc.bbbbb.aaaa.com:22
* Compression methods from config: none
* With host key algorithms: ssh-ed25519, ecdsa-sha2-nistp521, ecdsa-sha2-nistp384, ecdsa-sha2-nistp256, rsa-sha2-512, rsa-sha2-256, ssh-rsa-cert-v01@openssh.com, ssh-dss-cert-v01@openssh.com, ssh-rsa, ssh-dss
* With keep alive interval 1 seconds
* With keep alive count max 6
* With OpenSSH-like host key verifier (knownHostsFile=[C:\Users\JOHNSMITH\.ssh\known_hosts], strictHostKeyChecking=ASK, hashKnownHosts=false)
* With keys from pageant in order: johnsmith-laptop-rsa-key-20200101
* With authentications allowed by the client: publickey, password, keyboard-interactive
* With connect timeout 10000 milliseconds
* Connected
=> none (failure, new auth methods allowed by the server: publickey, keyboard-interactive)
=> publickey from the SSH agent, comment: johnsmith-laptop-rsa-key-20200101 (success)
2021-04-30 21:28:26,487 [2345569] WARN - om.intellij.ssh.impl.sshj.sshj - Failed to connect. Brief info: SSH connection to @:22
* Compression methods from config: none
* With host key algorithms: ssh-ed25519, ecdsa-sha2-nistp521, ecdsa-sha2-nistp384, ecdsa-sha2-nistp256, rsa-sha2-512, rsa-sha2-256, ssh-rsa-cert-v01@openssh.com, ssh-dss-cert-v01@openssh.com, ssh-rsa, ssh-dss
* With keep alive interval 1 seconds
* With keep alive count max 6
* With OpenSSH-like host key verifier (knownHostsFile=[C:\Users\JOHNSMITH\.ssh\known_hosts], strictHostKeyChecking=ASK, hashKnownHosts=false)
* With keys from pageant in order: johnsmith-laptop-rsa-key-20200101
* With authentications allowed by the client: publickey, password, keyboard-interactive
java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:138)
at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:490)
at com.intellij.ssh.impl.SshConnection.b(SshConnection.kt:247)
at com.intellij.ssh.impl.SshConnection.access$doSshjSshConnection(SshConnection.kt:30)
at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:243)
at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:30)
at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:444)
at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:426)
at com.intellij.ssh.impl.SshConnection.c(SshConnection.kt:242)
at com.intellij.ssh.impl.SshConnection.access$createSshSessionForSshj(SshConnection.kt:30)
at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:150)
at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:30)
at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:444)
at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:426)
at com.intellij.ssh.impl.SshConnection.checkCanAuthenticate(SshConnection.kt:129)
at com.intellij.ssh.SshConnectionService.checkCanAuthenticate(SshConnectionService.kt:190)
at com.intellij.ssh.Ssh.a(ssh.kt:300)
at com.intellij.ssh.Ssh.access$checkCanAuthenticate(ssh.kt:1)
at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate(ssh.kt:147)
at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate$default(ssh.kt:147)
at com.jetbrains.plugins.remotesdk.target.ssh.target.wizard.ConnectionData$checkAgentConnection$thread$1.run(SshTargetWizardModel.kt:161)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-04-30 21:28:26,488 [2345570] INFO - h.target.wizard.ConnectionData - Got error in checkConnection
com.intellij.ssh.SshTransportException: Connection refused: connect
at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:517)
at com.intellij.ssh.impl.SshConnection.b(SshConnection.kt:247)
at com.intellij.ssh.impl.SshConnection.access$doSshjSshConnection(SshConnection.kt:30)
at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:243)
at com.intellij.ssh.impl.SshConnection$createSshSessionForSshj$1.invoke(SshConnection.kt:30)
at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:444)
at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:426)
at com.intellij.ssh.impl.SshConnection.c(SshConnection.kt:242)
at com.intellij.ssh.impl.SshConnection.access$createSshSessionForSshj(SshConnection.kt:30)
at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:150)
at com.intellij.ssh.impl.SshConnection$checkCanAuthenticate$1.invoke(SshConnection.kt:30)
at com.intellij.ssh.Ssh.wrapBlockingSshCall(ssh.kt:444)
at com.intellij.ssh.Ssh.wrapBlockingSshCall$default(ssh.kt:426)
at com.intellij.ssh.impl.SshConnection.checkCanAuthenticate(SshConnection.kt:129)
at com.intellij.ssh.SshConnectionService.checkCanAuthenticate(SshConnectionService.kt:190)
at com.intellij.ssh.Ssh.a(ssh.kt:300)
at com.intellij.ssh.Ssh.access$checkCanAuthenticate(ssh.kt:1)
at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate(ssh.kt:147)
at com.intellij.ssh.ConnectionBuilder.checkCanAuthenticate$default(ssh.kt:147)
at com.jetbrains.plugins.remotesdk.target.ssh.target.wizard.ConnectionData$checkAgentConnection$thread$1.run(SshTargetWizardModel.kt:161)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:138)
at com.intellij.ssh.impl.sshj.SshjConnectionUtilKt.setUpSessionForSshJ(SshjConnectionUtil.kt:490)
... 20 more
Now, let me point out, that When I change the "Host:" value from ddd######.ccccc.bbbbb.aaaa.com (in size and structure), to my server's IP v4 address, I get farther, but see the following:
> pwd
/home/johnsmith
Command finished with exit code 0
rsync not found in PATH
rsync not found on the remote, or on the local? Because, rsync is definitely in the PATH on the remote.
@... It's about rsync on the local machine. Do you have it installed?