Ssh-plugin, "no interpreter found"

Hello everyone.
I just installed a new instance of SCM manager, and i added ssh-plugin.
I created a hg repo on the server and i am trying to push the code i already have in a prexisting hg repo.
But i get this:

sandro@host-devel2:~/src/<repositoryname>.2upload$ hg push
pushing to ssh://sandro@<scm-manager-fqdn>:2222/scmadmin/<repositoryname>
abort: no suitable response from remote hg!

On scm manager logs i get:

2021-12-06 13:53:31.486 [sshd-ScmSshCommand-thread-1] [          ] ERROR com.cloudogu.scm.ssh.command.ScmCommand - received error during handling of command hg -R scmadmin/<repositoryname> serve --stdio
java.lang.IllegalArgumentException: no interpreter found for command: hg -R scmadmin/<repositoryname> serve --stdio
        at com.cloudogu.scm.ssh.command.ScmCommand.run(ScmCommand.java:99)
        at org.apache.sshd.server.command.AbstractCommandSupport.lambda$start$0(AbstractCommandSupport.java:158)
        at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
        at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

I think authentication correctly succeeded:

sandro@host-devel2:~/src/<repositoryname>.2upload$ ssh -Tv sandro@<scm-manager-fqdn> -p 2222
OpenSSH_6.0p1 Debian-4, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to <scm-manager-fqdn> [172.16.16.3] port 2222.
debug1: Connection established.
debug1: identity file /home/sandro/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/sandro/.ssh/id_rsa-cert type -1
debug1: identity file /home/sandro/.ssh/id_dsa type -1
debug1: identity file /home/sandro/.ssh/id_dsa-cert type -1
debug1: identity file /home/sandro/.ssh/id_ecdsa type -1
debug1: identity file /home/sandro/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version APACHE-SSHD-2.5.1
debug1: no match: APACHE-SSHD-2.5.1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA 40:9c:c5:e2:02:5d:d3:98:b1:21:62:cf:5c:9a:9c:a1
debug1: Host '[<scm-manager-fqdn>]:2222' is known and matches the RSA host key.
debug1: Found key in /home/sandro/.ssh/known_hosts:110
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: password,keyboard-interactive,publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/sandro/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to <scm-manager-fqdn> ([172.16.16.3]:2222).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
shell request failed on channel 0

Anyone can point me to the right direction?

Thank you in advance…

Hi Sandro,

sadly, the ssh plugin only works for git. We would love to make it work for hg, too, but haven’t had the time nor the budget, yet.

Regards
René

1 Like

Oh. Unfortunately I am no developer so I cannot help with that.
Anyway, i think that stating that ssh plugin works only for git would be a great documentation improvement for it.

2 Likes