{"action":"created","issue":{"url":"https://api.github.com/repos/mobile-shell/mosh/issues/499","repository_url":"https://api.github.com/repos/mobile-shell/mosh","labels_url":"https://api.github.com/repos/mobile-shell/mosh/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/mobile-shell/mosh/issues/499/comments","events_url":"https://api.github.com/repos/mobile-shell/mosh/issues/499/events","html_url":"https://github.com/mobile-shell/mosh/issues/499","id":27145765,"node_id":"MDU6SXNzdWUyNzE0NTc2NQ==","number":499,"title":"Support for reverse port forwarding","user":{"login":"wincent","id":7074,"node_id":"MDQ6VXNlcjcwNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7074?v=4","gravatar_id":"","url":"https://api.github.com/users/wincent","html_url":"https://github.com/wincent","followers_url":"https://api.github.com/users/wincent/followers","following_url":"https://api.github.com/users/wincent/following{/other_user}","gists_url":"https://api.github.com/users/wincent/gists{/gist_id}","starred_url":"https://api.github.com/users/wincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wincent/subscriptions","organizations_url":"https://api.github.com/users/wincent/orgs","repos_url":"https://api.github.com/users/wincent/repos","events_url":"https://api.github.com/users/wincent/events{/privacy}","received_events_url":"https://api.github.com/users/wincent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2014-02-07T16:00:54Z","updated_at":"2018-07-11T18:15:16Z","closed_at":null,"author_association":"NONE","body":"This would be a nice to have; basically the equivalent of SSH's `-R` option:\n\n```\n -R [bind_address:]port:host:hostport\n         Specifies that the given port on the remote (server) host is to be forwarded\n         to the given host and port on the local side.  This works by allocating a\n         socket to listen to port on the remote side, and whenever a connection is\n         made to this port, the connection is forwarded over the secure channel, and\n         a connection is made to host port hostport from the local machine.\n\n         Port forwardings can also be specified in the configuration file.  Privi-\n         leged ports can be forwarded only when logging in as root on the remote\n         machine.  IPv6 addresses can be specified by enclosing the address in square\n         brackets.\n\n         By default, the listening socket on the server will be bound to the loopback\n         interface only.  This may be overridden by specifying a bind_address.  An\n         empty bind_address, or the address `*', indicates that the remote socket\n         should listen on all interfaces.  Specifying a remote bind_address will only\n         succeed if the server's GatewayPorts option is enabled (see sshd_config(5)).\n\n         If the port argument is `0', the listen port will be dynamically allocated\n         on the server and reported to the client at run time.  When used together\n         with -O forward the allocated port will be printed to the standard output.\n```\n\nMy specific use case here is wanting to use https://github.com/wincent/clipper, which relies on reverse port-forwarding to expose the local clipboard to a process running on a remote host (ie. to do things like copy from tmux or Vim on a remote machine and have it land in your local system clipboard).\n\nI've seen tickets here for agent forwarding and \"normal\" (not reverse) port-forwarding, so thought I'd open up a ticket to track this one separately.\n"},"comment":{"url":"https://api.github.com/repos/mobile-shell/mosh/issues/comments/404262995","html_url":"https://github.com/mobile-shell/mosh/issues/499#issuecomment-404262995","issue_url":"https://api.github.com/repos/mobile-shell/mosh/issues/499","id":404262995,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDI2Mjk5NQ==","user":{"login":"wincent","id":7074,"node_id":"MDQ6VXNlcjcwNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7074?v=4","gravatar_id":"","url":"https://api.github.com/users/wincent","html_url":"https://github.com/wincent","followers_url":"https://api.github.com/users/wincent/followers","following_url":"https://api.github.com/users/wincent/following{/other_user}","gists_url":"https://api.github.com/users/wincent/gists{/gist_id}","starred_url":"https://api.github.com/users/wincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wincent/subscriptions","organizations_url":"https://api.github.com/users/wincent/orgs","repos_url":"https://api.github.com/users/wincent/repos","events_url":"https://api.github.com/users/wincent/events{/privacy}","received_events_url":"https://api.github.com/users/wincent/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T18:15:16Z","updated_at":"2018-07-11T18:15:16Z","author_association":"NONE","body":"@d4l3k: I created this one as a separate issue specifically for *reverse* port forwarding, because I think people are talking about *forward* port forwarding in that other issue."}}
{"actor":{"display_login":"wincent"}}