windows 如何将会话导入 MobaXterm?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48943180/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 20:02:57  来源:igfitidea点击:

How to import sessions into MobaXterm?

windowsimportmobaxterm

提问by LordMax

I have to monitor many servers (over 3000) and the management has decided to use MobaXterm. All right, it works fine.

我必须监控许多服务器(超过 3000 台),管理层决定使用 MobaXterm。好吧,它工作正常。

The ideal would be to have sessions already set up and shared with colleagues, it would be a considerable convenience.

理想的情况是已经设置了会话并与同事共享,这将是一个相当大的便利。

Is there a way to massively import server data (name, ip, login) into sessions instead of insert them one by one?

有没有一种方法可以将服务器数据(名称、IP、登录名)大量导入到会话中,而不是一个一个地插入它们?

回答by giannis christofakis

From the Sessionstab, left click User sessionsand select Import sessions from file

Sessions选项卡中,左键单击User sessions并选择Import sessions from file

Import sessions from file

从文件导入会话

The file should be similar to the following image.

该文件应类似于下图。

enter image description here

enter image description here

The version is Personal Edition v11.0.

版本是Personal Edition v11.0.

回答by Paul

MobaXterm is able to import sessions from a list of hosts, but this is limited to the import of hosts without users/port/passwords/advanced settings. For that, you have to create a file with one server per line.

MobaXterm 能够从主机列表中导入会话,但这仅限于导入没有用户/端口/密码/高级设置的主机。为此,您必须创建一个每行一台服务器的文件。

Then, in order to try this feature, you can start a local terminal and run the "ServersListToMxtSessions.sh" script. The script will ask you to select a file, so just select the one you have created.

然后,为了尝试此功能,您可以启动本地终端并运行“ServersListToMxtSessions.sh”脚本。该脚本将要求您选择一个文件,因此只需选择您创建的文件即可。

Hope it helps....

希望能帮助到你....

回答by kenorb

MobaXterm is able to import sessions either from:

MobaXterm 能够从以下任一方式导入会话:

  • The file in .mxtsessionsformat.

    You can export few examples first to see the syntax, so you can write a script to save it into that format.

  • PuTTy/SuperPuTTy sessions.

    All sessions from PuTTy can be imported. To import into PuTTy, you can create a registry file.

  • Other session formats (check the contextual menuin Sessionsfor full list).

  • .mxtsessions格式的文件。

    您可以先导出几个示例以查看语法,因此您可以编写脚本将其保存为该格式。

  • PuTTy/SuperPuTTy 会话。

    PuTTy 中的所有会话都可以导入。要导入 PuTTy,您可以创建一个注册表文件

  • 其他会话格式(检查会话中上下文菜单以获取完整列表)。

Alternatively use a macro app to achieve that (such as AutoHotkey).

或者使用宏应用程序来实现(例如AutoHotkey)。