如何打开ssh:// username @ hostname链接

我想用ssh打开像“ssh:// username @ hostname”这样的链接。
我认为xdg-open可以帮助我(xdg-open ssh:// username @ hostname),但我不知道怎么做。
我该怎么做?

我可以收集的内容,你必须在gconf中注册协议:

gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/enabled true gconftool-2 --set --type=string /desktop/gnome/url-handlers/ssh/command 'gnome-terminal -e "%s"' gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/needs_terminal false 

( 来源 )

我不能让它在铬中注册ssh。 没试过用firefox,但这些说明应该有所帮助。

您可以使用ssh username@hostname在命令行上打开ssh链接(我想您已经知道了)如果您想通过gnome中的nautilus访问它,那么您可以最小化所有窗口并执行[ctrl] + L将打开一个对话框。 输入您的urlssh://username@hostname ,然后点击“打开”。

这应该可以解决你的大部分问题。 xdg-open只能在url已经安装到某个地方时打开url。 否则无法访问ssh文件。

如果我正确理解你的问题,那么我认为你想在gui模式中打开这样的链接。 要在nautilus中打开此类链接,只需将ssh替换为sftp即可

打开nautilus并在地址栏中键入sftp:// user @ host,然后按Enter键