{"action":"created","issue":{"url":"https://api.github.com/repos/mobile-shell/mosh/issues/431","repository_url":"https://api.github.com/repos/mobile-shell/mosh","labels_url":"https://api.github.com/repos/mobile-shell/mosh/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/mobile-shell/mosh/issues/431/comments","events_url":"https://api.github.com/repos/mobile-shell/mosh/issues/431/events","html_url":"https://github.com/mobile-shell/mosh/issues/431","id":14898831,"number":431,"title":"Having a .moshrc (equivalent to .ssh/config) file to be able to specify per-host configs","user":{"login":"lemoinem","id":234992,"avatar_url":"https://avatars.githubusercontent.com/u/234992?v=3","gravatar_id":"","url":"https://api.github.com/users/lemoinem","html_url":"https://github.com/lemoinem","followers_url":"https://api.github.com/users/lemoinem/followers","following_url":"https://api.github.com/users/lemoinem/following{/other_user}","gists_url":"https://api.github.com/users/lemoinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lemoinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemoinem/subscriptions","organizations_url":"https://api.github.com/users/lemoinem/orgs","repos_url":"https://api.github.com/users/lemoinem/repos","events_url":"https://api.github.com/users/lemoinem/events{/privacy}","received_events_url":"https://api.github.com/users/lemoinem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2013-05-29T16:20:43Z","updated_at":"2016-05-14T05:30:49Z","closed_at":null,"body":"Hi,\r\n\r\nI think this would go a long way improving the usability of mosh to be able to have a .ssh/config equivalent.\r\n\r\nUnfortunately, ssh complains about unknown directives in .ssh/config so we will need a new file (I also think it's good practice to do so anyway).\r\n\r\nThe format could be simple (.ssh/config sounds a pretty good example: easy to write, easy to parse).\r\n\r\nUseful configs to include: `hostname`, `port`, `mosh-server`, eventually `ssh` and `command` (in some weird case). Later: enable/disable OOB data (#423) on a per-host basis.\r\nSome of the configs such as `hostname`, `agent forwarding`, `X11 forwarding`, etc... could actually be extracted from .ssh/config directly.\r\n\r\nI think it's much better than aliases because it's seamless and consistent. Plus the fact that mosh already seamlessly use .ssh/config makes it quite irritating to be able to use aliases only for specifying a couple of argument for a given host. If many hosts requires a custom config multiplication of aliases could also clutter the shell. Plus we always have to remember which hosts works out-of-the-box and which needs an alias. All this disappears with a `.mosh/config` config file.\r\n\r\nSecurity-wise, since it's already done by ssh (and actually allows a much bigger control on the connection since it could change the Hostname we are connecting to, define a ProxyCommand, etc...), If the file is secure, I don't see a very big security issue here."},"comment":{"url":"https://api.github.com/repos/mobile-shell/mosh/issues/comments/219201982","html_url":"https://github.com/mobile-shell/mosh/issues/431#issuecomment-219201982","issue_url":"https://api.github.com/repos/mobile-shell/mosh/issues/431","id":219201982,"user":{"login":"Myke","id":17866,"avatar_url":"https://avatars.githubusercontent.com/u/17866?v=3","gravatar_id":"","url":"https://api.github.com/users/Myke","html_url":"https://github.com/Myke","followers_url":"https://api.github.com/users/Myke/followers","following_url":"https://api.github.com/users/Myke/following{/other_user}","gists_url":"https://api.github.com/users/Myke/gists{/gist_id}","starred_url":"https://api.github.com/users/Myke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Myke/subscriptions","organizations_url":"https://api.github.com/users/Myke/orgs","repos_url":"https://api.github.com/users/Myke/repos","events_url":"https://api.github.com/users/Myke/events{/privacy}","received_events_url":"https://api.github.com/users/Myke/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T05:30:49Z","updated_at":"2016-05-14T05:30:49Z","body":"Another vote for server-side config; with multiple servers behind NAT, ssh-config nicely solves the port changes, but there's no elegant way to teach mosh that it's only getting specific ports forwarded to it.\r\n"}}