Closed stokito closed 1 year ago
I think this is the intended purpose of the -N
(and, to some extent, also the lowercased -n
) - from the ssh client manual:
-N Do not execute a remote command. This is useful for just
forwarding ports. Refer to the description of SessionType
in ssh_config(5) for details.
Technically the ssh client doesn't open a shell, making it impossible for the remotemoe daemon to communicate with the client. The only channels opened when using the -N
are the forwarding of traffic channels.
The lowercased -n
does open up a shell, but it simply pipes any output into /dev/null, so while behaving differently, the result is pretty much the same (in remotemoe's case, anyways)
ok, it's not possible to implement, closing. Thank you for your product ans supprort
This is probably not a bug but maybe there is some solution. The OpenWrt sshtunnel package ads the -N (and also -n) and after this I can't see a generated domain in logs. But I can see the banner text. So maybe there is some workaround for this.
I created a PR for the OpenWrt sshtunnel were removed the problematic option https://github.com/openwrt/packages/pull/21263#issuecomment-1601708542
Still maybe someone else who just copied the ssh command from random site may be wondered what's wrong.
Example 1. Usual output:
E.g. nothing
Similar problem https://github.com/pcarrier/srv.us/issues/18