{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/hono/issues/851","repository_url":"https://api.github.com/repos/eclipse/hono","labels_url":"https://api.github.com/repos/eclipse/hono/issues/851/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/hono/issues/851/comments","events_url":"https://api.github.com/repos/eclipse/hono/issues/851/events","html_url":"https://github.com/eclipse/hono/issues/851","id":369355230,"node_id":"MDU6SXNzdWUzNjkzNTUyMzA=","number":851,"title":"Hono - Docker for AWS installation","user":{"login":"mohabh88","id":9646161,"node_id":"MDQ6VXNlcjk2NDYxNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/9646161?v=4","gravatar_id":"","url":"https://api.github.com/users/mohabh88","html_url":"https://github.com/mohabh88","followers_url":"https://api.github.com/users/mohabh88/followers","following_url":"https://api.github.com/users/mohabh88/following{/other_user}","gists_url":"https://api.github.com/users/mohabh88/gists{/gist_id}","starred_url":"https://api.github.com/users/mohabh88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohabh88/subscriptions","organizations_url":"https://api.github.com/users/mohabh88/orgs","repos_url":"https://api.github.com/users/mohabh88/repos","events_url":"https://api.github.com/users/mohabh88/events{/privacy}","received_events_url":"https://api.github.com/users/mohabh88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-10-12T00:30:18Z","updated_at":"2018-11-02T07:32:24Z","closed_at":null,"author_association":"NONE","body":"Hello Hono Guru, \r\n\r\nI got a question regarding deploying Hono using [Docker Swarms on AWS](http://www.eclipse.org/hono/deployment/docker-swarm/). I was able to run Docker Swarms (i.e., one Swarm Manager and five Worker nodes) using CloudFormation and deployed the containers comprising a Hono instance to an existing Docker Swarm based on the `swarm_deploy.sh` script and it was successfully deployed.\r\n\r\n```\r\nexport DOCKER_HOST=tcp://18.212.195.15:22\r\n~/Desktop/hono-master-3/example/target/deploy$ cd docker/\r\n~/Desktop/hono-master-3/example/target/deploy/docker$ sudo ./swarm_deploy.sh \r\nDEPLOYING ECLIPSE HONO TO DOCKER SWARM\r\n0xztxrqhxariteqjk0kjjx2ok\r\nluvp6cqsezhwr6blcspl143k5\r\n\r\nDeploying Influx DB and Grafana ...\r\nx9d4qmskal2tg3br7ariliwwa\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying Artemis broker ...\r\np93ugwlhvctovyqzewrwvbvly\r\nhxhkqifv72hgfx6wo4y35sj2c\r\no1a1pm6w7o3wvmtf4nb1fa2bd\r\nt7lhtd7ziebwa4i83mw5r9806\r\nf0s5b4cvip95il95rvg66ekm1\r\n9evfchl6irinrzrxk9hdsn3cc\r\n8fp0trejdxmzzey5gbxmvz6yf\r\nz8bppuia4z8z7q96c28tw06z7\r\n8hbd0j3m343x2va7dwt90oy94\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying Qpid Dispatch Router ...\r\nbaehvq06eufcouylkba2j1uvb\r\nxoh3ehppbobx3jxf44r3frfsp\r\ntx6gd0g4ssbazatrc5rr0kfcw\r\nug5bu6dl3kt2vxq89w26q1dsi\r\nsp3zkteg5uxo0ultjeuosdh9j\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying Authentication Server ...\r\nplnjjv8m6f5o62zhyk1oswsx6\r\nkdznvqlq4sm1hvjozkaj6vec5\r\ngr6q61z8pvhztw22kpjuhnbq9\r\nb59ueobdqp8ountm3uk0jmfgy\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying Device Registry ...\r\ngtfcr9sm8g328l0ur2h54wpo5\r\nhntyb76dgr5of6wig52b9foxz\r\nn5yihnb180a773dvv3mqri0n5\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n\r\nDeploying Hono Messaging ...\r\nmfqu1p7ysxs7whtbvvvewyn4n\r\nrrdzqkam9fd4z20wwyh9svlnn\r\nbzly7tipni254xq5yzre2cbp2\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying HTTP adapter ...\r\nzjx1ncoh07r8rboumt4c2hz97\r\nkuw2dv7ym38r2p8pecjx6p8ei\r\ni1edkjpodfczwffcfpe5tvu2y\r\n7p26qf45oxln21tw3fim1k0gm\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying MQTT adapter ...\r\nwvxm9ogmg3gt2k7y5vmu4rykm\r\n8ud4a2t365rds4v5q8ot3v56m\r\n88f0scqgb4vgtlnl3uedt4vr2\r\nx3efbeeloh3lbzhqtvrcbci5d\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nDeploying Kura adapter ...\r\nnxi0v6x32ku7z0gtr1exfkm3y\r\n0hrtnnxiidzac5qy9tzwnmbf5\r\n8y2xhkivkajlldlas6mib00c5\r\ntv22e095tnlv7y3s8oc88jxna\r\nunknown flag: --detach\r\nSee 'docker service create --help'.\r\n... done\r\n\r\nConfiguring Grafana ...\r\nWaiting for Grafana service at 127.0.0.1:3000 to come up...\r\n.. Grafana is up, set its datasource and dashboard\r\nHTTP/1.1 409 Conflict\r\nContent-Type: application/json\r\nDate: Thu, 11 Oct 2018 22:55:46 GMT\r\nContent-Length: 55\r\n\r\n{\"message\":\"Data source with same name already exists\"}HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 412 Precondition Failed\r\nContent-Type: application/json\r\nDate: Thu, 11 Oct 2018 22:55:46 GMT\r\nContent-Length: 96\r\n\r\n{\"message\":\"A dashboard with the same name in the folder already exists\",\"status\":\"name-exists\"}... done\r\nECLIPSE HONO DEPLOYED TO DOCKER SWARM\r\n```\r\n\r\nNow, getting to the [Custom Configuration](http://www.eclipse.org/hono/deployment/docker-swarm/#custom-configuration) step to employ Docker Swarm’s Secret; I created a copy of the permissions.json in the ~/tmp$ folder (i.e., my-permissions.json), added new-user@HONO element at the end of the `my-permissions.json` file, added `docker secret create` for the same file, and added the `hono.auth.svc.permissionsPath` property pointing to the custom property `hono-service-auth-config.yml` file. \r\n\r\nBuilding the deploy script is successful\r\n\r\n```\r\nsudo mvn install\r\n[sudo] password for moaly: \r\n[INFO] Scanning for projects...\r\n[INFO] Inspecting build with total of 1 modules...\r\n[INFO] Installing Nexus Staging features:\r\n[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin\r\n[INFO] \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building Hono Examples 0.6-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] \r\n[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (default) @ hono-example ---\r\n[INFO] \r\n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-snapshots) @ hono-example ---\r\n[INFO] Skipping Rule Enforcement.\r\n[INFO] \r\n[INFO] --- maven-dependency-plugin:3.0.2:unpack-dependencies (copy_demo_certs) @ hono-example ---\r\n[INFO] org.eclipse.hono:hono-demo-certs:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-auth:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-messaging:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-device-registry:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-http-vertx:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-mqtt-vertx:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-kura:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 3 resources\r\n[INFO] Copying 32 resources to /home/moaly/Desktop/hono-master-3/example/target/deploy\r\n[INFO] Copying 16 resources to /home/moaly/Desktop/hono-master-3/example/target/sandbox\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_docker_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/docker\r\n[INFO] Copying 2 resources to deploy/docker/qpid\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_kubernetes_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/kubernetes\r\n[INFO] Copying 2 resources to deploy/kubernetes/qpid\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_openshift_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/openshift\r\n[INFO] Copying 2 resources to deploy/openshift/qpid\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ hono-example ---\r\n[INFO] Nothing to compile - all classes are up to date\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] skip non existing resourceDirectory /home/moaly/Desktop/hono-master-3/example/src/test/resources\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ hono-example ---\r\n[INFO] No sources to compile\r\n[INFO] \r\n[INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ hono-example ---\r\n[INFO] No tests to run.\r\n[INFO] \r\n[INFO] --- maven-dependency-plugin:3.0.2:unpack-dependencies (copy_legal_docs) @ hono-example ---\r\n[INFO] org.eclipse.hono:hono-legal:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] \r\n[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ hono-example ---\r\n[INFO] Building jar: /home/moaly/Desktop/hono-master-3/example/target/hono-example-0.6-SNAPSHOT.jar\r\n[INFO] \r\n[INFO] --- spring-boot-maven-plugin:1.5.8.RELEASE:repackage (default) @ hono-example ---\r\n[INFO] \r\n[INFO] --- maven-assembly-plugin:3.0.0:single (eclipse-hono) @ hono-example ---\r\n[INFO] Reading assembly descriptor: src/main/assembly/hono.xml\r\n[INFO] Building tar: /home/moaly/Desktop/hono-master-3/example/target/eclipse-hono-example-0.6-SNAPSHOT.tar.gz\r\n[INFO] \r\n[INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ hono-example ---\r\n[INFO] Building jar: /home/moaly/Desktop/hono-master-3/example/target/hono-example-0.6-SNAPSHOT-sources.jar\r\n[INFO] \r\n[INFO] --- maven-checkstyle-plugin:2.17:check (checkstyle-check) @ hono-example ---\r\n[INFO] \r\n[INFO] --- maven-install-plugin:2.4:install (default-install) @ hono-example ---\r\n[INFO] Installing /home/moaly/Desktop/hono-master-3/example/target/hono-example-0.6-SNAPSHOT.jar to /root/.m2/repository/org/eclipse/hono/hono-example/0.6-SNAPSHOT/hono-example-0.6-SNAPSHOT.jar\r\n[INFO] Installing /home/moaly/Desktop/hono-master-3/example/pom.xml to /root/.m2/repository/org/eclipse/hono/hono-example/0.6-SNAPSHOT/hono-example-0.6-SNAPSHOT.pom\r\n[INFO] Installing /home/moaly/Desktop/hono-master-3/example/target/hono-example-0.6-SNAPSHOT-sources.jar to /root/.m2/repository/org/eclipse/hono/hono-example/0.6-SNAPSHOT/hono-example-0.6-SNAPSHOT-sources.jar\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD SUCCESS\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 5.516 s\r\n[INFO] Finished at: 2018-10-11T18:52:40-04:00\r\n[INFO] Final Memory: 36M/578M\r\n[INFO] ------------------------------------------------------------------------\r\n```\r\nbut when deploying and starting up the stack using the custom permissions, I get \"connection to server [localhost:5671] already closed\" and the consumer doesn't start (although it returns build success at the end). Also,\r\n\r\n`[vert.x-eventloop-thread-1] INFO  o.e.h.a.i.FileBasedAuthenticationService - loading permissions from resource file:/run/secrets/my-permissions.json ` does not appear in the log output of the Auth Server.\r\n\r\n```\r\nsudo mvn spring-boot:run -Drun.profiles=sender,ssl -Drun.arguments=--hono.client.username=new-user@HONO,--hono.client.password=mypassword,--hono.client.hostname=54.237.194.228\r\n[sudo] password for moaly: \r\n[INFO] Scanning for projects...\r\n[INFO] Inspecting build with total of 1 modules...\r\n[INFO] Installing Nexus Staging features:\r\n[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin\r\n[INFO] \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building Hono Examples 0.6-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] \r\n[INFO] >>> spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) > test-compile @ hono-example >>>\r\n[INFO] \r\n[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (default) @ hono-example ---\r\n[INFO] \r\n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-snapshots) @ hono-example ---\r\n[INFO] Skipping Rule Enforcement.\r\n[INFO] \r\n[INFO] --- maven-dependency-plugin:3.0.2:unpack-dependencies (copy_demo_certs) @ hono-example ---\r\n[INFO] org.eclipse.hono:hono-demo-certs:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-auth:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-messaging:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-service-device-registry:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-http-vertx:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-mqtt-vertx:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] org.eclipse.hono:hono-adapter-kura:jar:0.6-SNAPSHOT already exists in destination.\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 3 resources\r\n[INFO] Copying 32 resources to /home/moaly/Desktop/hono-master-3/example/target/deploy\r\n[INFO] Copying 16 resources to /home/moaly/Desktop/hono-master-3/example/target/sandbox\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_docker_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/docker\r\n[INFO] Copying 2 resources to deploy/docker/qpid\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_kubernetes_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/kubernetes\r\n[INFO] Copying 2 resources to deploy/kubernetes/qpid\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:copy-resources (create_openshift_config_files) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 16 resources to deploy/openshift\r\n[INFO] Copying 2 resources to deploy/openshift/qpid\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ hono-example ---\r\n[INFO] Nothing to compile - all classes are up to date\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ hono-example ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] skip non existing resourceDirectory /home/moaly/Desktop/hono-master-3/example/src/test/resources\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ hono-example ---\r\n[INFO] No sources to compile\r\n[INFO] \r\n[INFO] <<< spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) < test-compile @ hono-example <<<\r\n[INFO] \r\n[INFO] \r\n[INFO] --- spring-boot-maven-plugin:1.5.8.RELEASE:run (default-cli) @ hono-example ---\r\n\r\n  ______     _ _                  _    _                   \r\n |  ____|   | (_)                | |  | |                  \r\n | |__   ___| |_ _ __  ___  ___  | |__| | ___  _ __   ___  \r\n |  __| / __| | | '_ \\/ __|/ _ \\ |  __  |/ _ \\| '_ \\ / _ \\ \r\n | |___| (__| | | |_) \\__ \\  __/ | |  | | (_) | | | | (_) |\r\n |______\\___|_|_| .__/|___/\\___| |_|  |_|\\___/|_| |_|\\___/ \r\n                | |                                        \r\n                |_|                                        \r\n\r\nEclipse Hono Example Client \r\nusing Spring Boot  (v1.5.8.RELEASE)\r\n\r\nGo to https://www.eclipse.org/hono for more information.\r\n\r\n\r\n18:58:14.337 [main] INFO  org.eclipse.hono.example.Application - Starting Application on m4122-01 with PID 29843 (/home/moaly/Desktop/hono-master-3/example/target/classes started by root in /home/moaly/Desktop/hono-master-3/example)\r\n18:58:14.341 [main] INFO  org.eclipse.hono.example.Application - The following profiles are active: sender,ssl\r\n18:58:14.393 [main] INFO  o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7fff42a4: startup date [Thu Oct 11 18:58:14 EDT 2018]; root of context hierarchy\r\n18:58:15.044 [main] INFO  org.eclipse.hono.example.Application - Starting example client in role sender,ssl\r\n18:58:15.528 [main] INFO  org.eclipse.hono.example.Application - Started Application in 1.562 seconds (JVM running for 6.303)\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD SUCCESS\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 4.968 s\r\n[INFO] Finished at: 2018-10-11T18:58:15-04:00\r\n[INFO] Final Memory: 37M/571M\r\n[INFO] ------------------------------------------------------------------------\r\n18:58:15.768 [Thread-4] INFO  o.s.c.a.AnnotationConfigApplicationContext - Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@7fff42a4: startup date [Thu Oct 11 18:58:14 EDT 2018]; root of context hierarchy\r\n18:58:15.777 [vert.x-eventloop-thread-0] INFO  o.e.hono.client.impl.HonoClientImpl - connection to server [localhost:5671] already closed\r\n```\r\n\r\nObservation: after modifying and saving the deploy script, everything reverts back to the original script (attached: swarm_deploy_original.sh) after `mvn install` and `sudo mvn spring-boot:run -Drun.profiles=sender,ssl -Drun.arguments=--hono.client.username=new-user@HONO,--hono.client.password=mypassword,--hono.client.hostname=54.237.194.228` to start the consumer. I used both the IPs (Swarm Manager and Worker) in the `--hono.client.hostname=` , but did not work out. \r\n\r\n[Custom_Configuration_AWS_Docker_Swarm_HONO.zip](https://github.com/eclipse/hono/files/2471123/Custom_Configuration_AWS_Docker_Swarm_HONO.zip)\r\n\r\nShould the custom configuration shown above be tweaked to have the consumer started? Thank you in advance for your assistance. "},"comment":{"url":"https://api.github.com/repos/eclipse/hono/issues/comments/435295031","html_url":"https://github.com/eclipse/hono/issues/851#issuecomment-435295031","issue_url":"https://api.github.com/repos/eclipse/hono/issues/851","id":435295031,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTI5NTAzMQ==","user":{"login":"sophokles73","id":5682135,"node_id":"MDQ6VXNlcjU2ODIxMzU=","avatar_url":"https://avatars1.githubusercontent.com/u/5682135?v=4","gravatar_id":"","url":"https://api.github.com/users/sophokles73","html_url":"https://github.com/sophokles73","followers_url":"https://api.github.com/users/sophokles73/followers","following_url":"https://api.github.com/users/sophokles73/following{/other_user}","gists_url":"https://api.github.com/users/sophokles73/gists{/gist_id}","starred_url":"https://api.github.com/users/sophokles73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophokles73/subscriptions","organizations_url":"https://api.github.com/users/sophokles73/orgs","repos_url":"https://api.github.com/users/sophokles73/repos","events_url":"https://api.github.com/users/sophokles73/events{/privacy}","received_events_url":"https://api.github.com/users/sophokles73/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T07:32:24Z","updated_at":"2018-11-02T07:32:24Z","author_association":"CONTRIBUTOR","body":"If you use ssh to forward a port from your local host to the remote host, then you will need to use that local port when trying to connect.\r\n1. set up port forwarding:\r\n```\r\nssh -i portforwarding-hono-keypair.pem -NL 5005:ec2-54-173-115-189.compute-1.amazonaws.com:15671 docker@ec2-54-173-115-189.compute-1.amazonaws.com\r\n```\r\nNote the usage of `-N`, you do not want to execute a remote command but simply want to forward the port. This command should give no output at all but simply run until you hit ctrl-c.\r\n\r\n2. open another shell and run the consumer using the *local* port:\r\n```\r\n/cli$ java -jar target/hono-cli-0.8-M1-SNAPSHOT-exec.jar --hono.client.host=localhost --hono.client.port=5005 --hono.client.username=consumer@HONO --hono.client.password=verysecret --spring.profiles.active=receiver,ssl,dev \r\n```\r\n\r\nBTW you should better use 0.8-M2 ..."}}
{"actor":{"display_login":"sophokles73"}}