remote ssh server must have GatewayPorts yes in sshd_config
if you set proxy.tunnel.host, the proxy setup will create an ssh tunnel from a random port on that host thru to proxy.port (default 4445) on localhost
if you also set proxy.tunnel.port, it will assume you've already done the ssh and use that port in URLs
if you set proxy.tunnel.username, that will be used for the ssh, else process.env.USER
if you set proxy.tunnel.sshPort, that will be used instead of 22
if you set proxy.host (just in case there's an external vs. internal hostname), that will be used in the proxy.targetUrl, else proxy.tunnel.host will be used
there's no longer a command port on 4446 - now it just reuses the proxy app with prefix /__testium_command__
TODO: better test of ssh client - still trying to figure out how to properly write test/processes/ssh-server.js
Now a setup like this will work:
driver = wd
GatewayPorts yes
insshd_config
proxy.tunnel.host
, the proxy setup will create an ssh tunnel from a random port on that host thru toproxy.port
(default 4445) on localhostproxy.tunnel.port
, it will assume you've already done the ssh and use that port in URLsproxy.tunnel.username
, that will be used for the ssh, elseprocess.env.USER
proxy.tunnel.sshPort
, that will be used instead of 22proxy.host
(just in case there's an external vs. internal hostname), that will be used in the proxy.targetUrl, elseproxy.tunnel.host
will be used/__testium_command__
TODO: better test of ssh client - still trying to figure out how to properly write
test/processes/ssh-server.js
This PR also includes some NLM updates.