After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343934 - ssh/telnet URI handler
ssh/telnet URI handler
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
2.14.x
Other All
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-05 18:17 UTC by Ryan Lovett
Modified: 2021-06-10 16:37 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Ryan Lovett 2006-06-05 18:17:32 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.
Comment 1 Guilherme de Siqueira Pastore 2006-07-29 15:46:04 UTC
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)?
Comment 2 GNOME Infrastructure Team 2021-06-10 16:37:29 UTC
-- 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.