博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mremoteng_mRemoteNG远程连接管理器的3个技巧
阅读量:2512 次
发布时间:2019-05-11

本文共 5327 字,大约阅读时间需要 17 分钟。

mremoteng

mremoteng

1796581220_ccfa8a6f6c_o3

Have you ever found yourself manually opening WinSCP to the same server you’ve just SSHed into with mRemoteNG? Or wishing you were able to extract the password from the mRemoteNG connection? HTG will guide you on how to unlock mRemote’s true power.

您是否曾经发现自己手动将WinSCP打开到与mRemoteNG SSH连接的同一服务器上? 还是希望您能够从mRemoteNG连接中提取密码? HTG将指导您如何释放mRemote的真正力量。

Image by: via  and

图片: 通过 和

We gave an introductory tour of mRemoteNG in our “” guide. In this guide we will dive deeper and show you some tips that we have found useful when working with it on a regular basis.

我们在“ ”指南中介绍了mRemoteNG。 在本指南中,我们将进行更深入的介绍,并向您展示一些在定期使用时发现有用的提示。

WinSCP集成 (WinSCP integration)

We’ve ; this program should be already in your arsenal if you’re administrating Linux machines from Windows.

我们以前 ; 如果要从Windows管理Linux机器,则该程序应该已经存在。

Many people who’ve been enlightened to mRemoteNG are simply unaware that it is possible to integrate the two, and end up maintaining two sets of “connection databases”. More than that, a lot of the time, because mRemoteNG is such an “end all be all solution”, it is the only one to get “the love”, and every time WinSCP is invoked, the connection’s details are entered manually.

许多了解mRemoteNG的人根本不知道可以将两者集成在一起,并最终维护了两组“连接数据库”。 不仅如此,很多时候,因为mRemoteNG就是这样的“最终解决方案”,所以它是唯一获得“爱”的人,并且每次调用WinSCP时,都要手动输入连接的详细信息。

All of the above can be easily negated through mRemoteNG’s “External Tools” feature. With this feature, it is possible to invoke WinSCP and pass to it all of the connections details that mRemoteNG already has.

通过mRemoteNG的“外部工具”功能可以很容易地否定上述所有条件。 使用此功能,可以调用WinSCP并将mRemoteNG已经拥有的所有连接详细信息传递给它。

If you don’t have  installed, go ahead and do it now.

如果您尚未安装 ,请立即进行操作。

To add an “External Tool”, go to the “Tools” menu and select “External Tools”.

要添加“外部工具”,请转到“工具”菜单,然后选择“外部工具”。

mremote-ad01

The “External Tools” tab will open.

“外部工具”选项卡将打开。

Right click anywhere in the upper portion of the tab, and you will be presented with a menu to create a “New External Tool”.

右键单击选项卡上部的任意位置,将显示一个菜单,用于创建“新的外部工具”。

mremote-ad02

In the lower portion of the screen, change the name for the tool you are adding under the “Display name” row to be “WinSCP”.

在屏幕的下部,将要添加的工具的名称在“显示名称”行下更改为“ WinSCP”。

mremote-ad03

In the “Filename” field, write the following:

在“文件名”字段中,输入以下内容:

sftp://%Username%:%Password%@%Hostname%

sftp://%Username%:%Password%@%Hostname%

So it looks like:

所以看起来像:

mremote-ad04

You’re essentially done :)

您基本上完成了:)

In order to use your new ability, right click on an SSH type of a connections’ tab, find the “External Tools” entry, and click on your newly created “WinSCP” option.

为了使用您的新功能,请右键单击“连接”选项卡的SSH类型,找到“外部工具”条目,然后单击新创建的“ WinSCP”选项。

mremote-ad05

密码显示器 (Password Revealer)

Due to the fact that mRemoteNG holds all of the passwords in a reversible encryption (so that it can use it), it is possible to extract them on a per connection basis. To achieve this, we will have mRemoteNG pass the “password” parameter to be “echo”ed in a regular old command prompt.

由于mRemoteNG以可逆加密方式保存了所有密码(以便可以使用它),因此有可能在每个连接的基础上提取它们。 为此,我们将让mRemoteNG传递“ password”参数,以在常规旧命令提示符下“回显”。

Add  another “External Tool” as we’ve shown above, only this time you would name the tool “Password Revealer” and the “filename” field will only hold the “cmd” directive. However, unlike the previous example, you would fill the “Arguments” line with the below:

如上所示,添加另一个“外部工具”,仅这次将工具命名为“ Password Revealer”,并且“ filename”字段仅包含“ cmd”指令。 但是,与前面的示例不同,您将在“ Arguments”行中填充以下内容:

/k echo "%password%"

/k echo "%password%"

The finished work, would look like:

完成的工作如下所示:

mremote-ad06

In order to use your new ability, right click on an SSH type of a connection’s tab, find the “External Tools” entry, and click on your newly created “Password Revealer” option.

为了使用您的新功能,请右键单击连接选项卡的SSH类型,找到“外部工具”条目,然后单击新创建的“密码显露器”选项。

mremote-ad07

连接文件清理 (Connection file sanitization)

You’ve gotten tens or even hundreds of connection profiles in your mRemoteNG setup and then you get a new team member. You want to give your connection file to them, but if you do, you’ll be giving them your credentials… Fear not, for HTG has got you covered.

在mRemoteNG设置中,您已经获得了数十甚至数百个连接配置文件,然后您会得到一个新的团队成员。 您想将连接文件提供给他们,但是如果这样做,您将向他们提供您的凭据...不要担心,因为HTG可以满足您的要求。

We will show how to globally erase passwords from mRemoteNG’s connection file.

我们将展示如何从mRemoteNG的连接文件中全局删除密码。

Note: This will require you to bust out your uber geek, but it is not a very difficult procedure.

注意:这将需要您解决超级怪胎,但这不是一个非常困难的过程。

First of all, you will need a Text Editor that is capable of doing ““, like  (we’ll be using Notepad++ for this example). Then, close mRemoteNG and in one of these editors open its connection file (which by default is under “C:\Users\%your-username%\AppData\Roaming\mRemoteNG”).

首先,您将需要一个能够执行“ ”的文本编辑器,例如 (在此示例中,我们将使用Notepad ++)。 然后,关闭mRemoteNG,并在其中一个编辑器中打开其连接文件(默认情况下位于“ C:\ Users \%您的用户名%\ AppData \ Roaming \ mRemoteNG”下)。

Perform a “Replace” (using Ctrl +H) and change the “Search Mode” to “Regular expression”. Then replace:

执行“替换”(使用Ctrl + H),然后将“搜索模式”更改为“正则表达式”。 然后替换:

Password=".+?" H

Password=".+?" H

With

Password="" H

Password="" H

Which would look like:

看起来像:

mremote-ad08

Click on “Replace All” and do a “Save As” to create the sanitized file.

单击“全部替换”并执行“另存为”以创建清理过的文件。

世界是一个更大的实验室 (The world is a bigger lab)

Got an mRemoteNG trick that you would like to share? Send it to us in the discussion forum.

想分享一个mRemoteNG技巧? 在讨论论坛中发送给我们。



Let me show you the

让我向您展示的

翻译自:

mremoteng

转载地址:http://dijwd.baihongyu.com/

你可能感兴趣的文章
HTML5 Canvas ( 文字的度量 ) measureText
查看>>
Http和Socket连接区别
查看>>
Arrays基本使用
查看>>
受限玻尔兹曼基
查看>>
Angular2,Springboot,Zuul,Shiro跨域CORS请求踩坑实录
查看>>
C语言中操作符的优先级大全
查看>>
SQL Server 查询分析器提供的所有快捷方式(快捷键)
查看>>
Linux - 查看系统基础信息的一般渠道
查看>>
Java第七次作业--图形用户界面
查看>>
MongoDB学习笔记06
查看>>
Powerdesigner+Execel
查看>>
数学基础 数论(二)
查看>>
走进模块
查看>>
什么是簇?
查看>>
[LeetCode] Construct Binary Tree from Inorder and Pretorder Traversal
查看>>
[转载]Android通过Socket上传文件
查看>>
golang 中的定时器(timer),更巧妙的处理timeout
查看>>
AT2134 Zigzag MST
查看>>
[NOI2019]回家路线
查看>>
何谓CRT,CRT的由来
查看>>