GNOME Bugzilla – Bug 343934
ssh/telnet URI handler
Last modified: 2021-06-10 16:37:29 UTC
While gnome-terminal supports the ability to click on web URIs, it'd be nice if it could also respond to clicking on ssh/telnet/rlogin/rsh URIs, e.g. ssh://user@hostname.com or even the pedantic (and unlikely) ssh://user:password@hostname.com. gnome-terminal could open another window or tab with the new SSH session. If gnome-terminal could also respond to URIs on the command-line, it would also make it just slightly easier to support these protocol handlers via Mozilla web browsers, e.g. pref("network.protocol-handler.app.ssh", "/usr/bin/gnome-terminal"); pref("network.protocol-handler.app.telnet", "/usr/bin/gnome-terminal"); assuming the URI is argv[1]. (the -e flag would require a helper script) See http://nerd.earthside.org/howto/enable-telnet-uri-handling-in-firefox.html for more details. Terminal.app, in Mac OS X, supports the handling of these URIs and, ironically, it makes the terminal feel more integrated into the OS. (in this respect) If you have access to a Mac, try clicking on an SSH URI. I suppose one could somehow accomplish the above with helper scripts and/or some sort of gnome-vfs fu and/or gnome-default-applications-properties. As an end user, however, I'd just like the Right Thing to happen when clicking on a URI, even if ssh/telnet are thought to be used by only those who can hack their own way of doing this.
After some thought and discussion, I'd say the Right Way (tm) to do it would be to add url-handlers for ssh and telnet that run gnome-terminal with the appropriate arguments (gnome-terminal -e ssh ...), and then users could set gnome-open as handler for Mozilla or whatever. The problem now is the following: how can I make 'gnome-terminal -e ssh master.gnome.org' be a handler for ssh://master.gnome.org/ (removing the url stuff)?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/3502.