{"action":"created","issue":{"url":"https://api.github.com/repos/shellinabox/shellinabox/issues/333","labels_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/333/comments","events_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/333/events","html_url":"https://github.com/shellinabox/shellinabox/issues/333","id":99591898,"number":333,"title":"Allow modification of port used in SSH service","user":{"login":"tomberek","id":178444,"avatar_url":"https://avatars.githubusercontent.com/u/178444?v=3","gravatar_id":"","url":"https://api.github.com/users/tomberek","html_url":"https://github.com/tomberek","followers_url":"https://api.github.com/users/tomberek/followers","following_url":"https://api.github.com/users/tomberek/following{/other_user}","gists_url":"https://api.github.com/users/tomberek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomberek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomberek/subscriptions","organizations_url":"https://api.github.com/users/tomberek/orgs","repos_url":"https://api.github.com/users/tomberek/repos","events_url":"https://api.github.com/users/tomberek/events{/privacy}","received_events_url":"https://api.github.com/users/tomberek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T06:55:52Z","updated_at":"2015-08-07T07:50:37Z","closed_at":null,"body":"Due to checks at:\r\nhttps://github.com/shellinabox/shellinabox/blob/master/shellinabox/service.c#L142-L149\r\none cannot specify the port used by the ssh command by \"creative\" use of the host name. If we'd like to add another option, or allow something like `123.45.67.89:2222` it should be fairly simple. Let me know if something like this is wanted and I can put it together.\r\n\r\n[This](http://unix.stackexchange.com/questions/75668/why-doesnt-the-ssh-command-follow-rfc-on-uri) details why ssh doesn't use user@ip:port syntax. In this case, is there a problem with us detecting the `:` and adding a ` -p PORT` to the host name?\r\n"},"comment":{"url":"https://api.github.com/repos/shellinabox/shellinabox/issues/comments/128627340","html_url":"https://github.com/shellinabox/shellinabox/issues/333#issuecomment-128627340","issue_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/333","id":128627340,"user":{"login":"KLuka","id":1918763,"avatar_url":"https://avatars.githubusercontent.com/u/1918763?v=3","gravatar_id":"","url":"https://api.github.com/users/KLuka","html_url":"https://github.com/KLuka","followers_url":"https://api.github.com/users/KLuka/followers","following_url":"https://api.github.com/users/KLuka/following{/other_user}","gists_url":"https://api.github.com/users/KLuka/gists{/gist_id}","starred_url":"https://api.github.com/users/KLuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KLuka/subscriptions","organizations_url":"https://api.github.com/users/KLuka/orgs","repos_url":"https://api.github.com/users/KLuka/repos","events_url":"https://api.github.com/users/KLuka/events{/privacy}","received_events_url":"https://api.github.com/users/KLuka/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T07:50:37Z","updated_at":"2015-08-07T07:50:37Z","body":"Hello, I don't mind, if we add optional `<port>` parameter for SSH service with `-p` flag. Than the syntax for the command would change like this for example:\r\n\r\n```diff\r\n-'SSH' [ : <host> ] \r\n+'SSH' [ : <host> [ : <port> ] ] \r\n```\r\n\r\nYou can check similar discussions in #107 and #84. Also fell free to create PR with a patch and I will examine it soon :wink: "}}