运行两个 firefox 实例——一个在本地,另一个通过 ssh

719*_*016 1 ssh firefox remote-access

我想在我的笔记本电脑中同时运行两个 Firefox 实例,一个在本地,另一个通过 ssh 连接打开一个实例到另一台计算机。

如果我只是尝试打开 ssh 的实例,它会被吞噬到我现有的本地实例中(打开一个新选项卡),并且我无法访问远程磁盘,因为它只是本地实例中的一个新选项卡,用于上传图片例如,通过网页。

如果我只是关闭本地实例并从 ssh 调用 firefox,那么我可以远程打开它,但我无法在本地打开它,再次关联到远程实例。

有没有办法做到这一点?

Lek*_*eyn 6

使用以下命令运行 Firefox:

firefox -no-remote
Run Code Online (Sandbox Code Playgroud)

这可以防止 Firefox 在正在运行的实例中打开 URL。您还可以指定配置文件路径:

firefox -no-remote -profile /path/to/ffprofile
Run Code Online (Sandbox Code Playgroud)

或者,如果配置文件在您的配置文件文件夹中~/.mozilla/firefox/xxxxx.name

firefox -no-remote -P name
Run Code Online (Sandbox Code Playgroud)