Format of the configuration file using port forwarding
When using port forwarding, the remote configuration file has the following format:
<connection protocol> <username@host> -L <forwarding_port>:<forwarding_host>:<kwdtagent_port> <user_install>/bin/kwdtagent -pd <path_to_remote_kwlp> --port <kwdtagent_port> host=<forwarding_host> port=<forwarding_port>
where
- <connection_protocol> is SSH or similar utility. You can also use a script.
- <username@host> is the login credentials for the machine where the Klocwork project (.kwlp) resides
- <forwarding_port> is the listening (or forwarding) port
- <forwarding_host> is the listening (or forwarding) host
- <kwdtagent_port> is the port kwdtagent is running on
- <user_install> is the path to the Klocwork User installation in the remote environment
- <path_to_remote_kwlp> specifies the path to the .kwlp in the remote environment
The host and port properties must each be on a separate line below the command string.
Example:
command=ssh jlee@acmeworks.com -L 8099:myhost.com:9011 /space/kw/user-9.1/bin/kwdtagent -pd /space/dev/C++TestProj/.kwlp --port 9011 host=myhost.com port=8099
In this example, all traffic is forwarded through 8099:myhost.com to the remote machine.