“算法协商失败"尝试连接到 Symantec NetBackup 时出现 JSch 错误 - 远程获取报告

quot;Algorithm negotiation failquot; error in JSch when trying to connect to Symantec NetBackup - grabing reports remotely(“算法协商失败尝试连接到 Symantec NetBackup 时出现 JSch 错误 - 远程获取报告)

本文介绍了“算法协商失败"尝试连接到 Symantec NetBackup 时出现 JSch 错误 - 远程获取报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在网上搜索并找到类似的帖子,但无法找到解决方案.

I have been searching online and found similar posts but could not find a solution reading them.

我正在尝试使用 ssh 从我的计算机连接到 NetBackup 服务器并运行报告并基于它们创建图表.我正在使用 java 和 JSch 库执行此操作.问题是我得到:

I am trying to connect to NetBackup servers using ssh from my computer and run a report and create graphs based on them. I am doing this using java and JSch library. The problem is that I get:

算法协商失败"在 com.jcraft.JSch.Session.recieve_kexinit(...

"Algorithm negotiation fail" at com.jcraft.JSch.Session.recieve_kexinit(...

我对谈判和密钥以及 diffie-hellman 等不同方法知之甚少.请告诉我:1、如何查看服务器接受哪些方法?2. 如果我需要设置协商方法,我该怎么做?

I know very little about negotiations and keys and different methods such as diffie-hellman etc. Could you please tell me: 1. How can I find out what methods does the server accept? 2. If I need to set up a negotiation method, how would I do that?

记录器只告诉我这个:

远程版本字符串:SSH-2.0-OpenSSH_5.1本地版本字符串:SSH-2.0-JSCH-0.1.31收到 SSH_MSG_KEXINITSSH_MSG_KEXINIT 已发送

The remote version string: SSH-2.0-OpenSSH_5.1 The local version string: SSH-2.0-JSCH-0.1.31 SSH_MSG_KEXINIT received SSH_MSG_KEXINIT sent

PS.我在受限系统下工作,这意味着我无法在服务器上进行更改.如果您需要更多信息,请告诉我.

PS. I am working under a restricted system, meaning that I cannot make changes on the server. Please let me know if you need additional information.

谢谢

推荐答案

经过大量研究,我认为要能够与 Netbackup 建立 SSH 连接,您必须创建一个可以访问 bash shell 的本地用户, 然后允许该用户的 root 访问权限,因为 netbackup commnands 要求您是超级用户.然后,您可以通过 ssh 访问该帐户并远程运行您想要的脚本.如果你想使用 Jsch,你需要在 C:Program FilesJavajre6libsecurity 中下载并安装 Java criptography Extension.但我不能这样做,因为我不想因为公司政策而被允许.因此,我创建了我的 Java 程序运行的 powershell 脚本,以便连接和运行报告并将输出放入文本文件中.

After doing a lot of research, I figured that to be able to have an SSH connection with Netbackup, you have to create a local user with access to bash shell, then allow root access to this user, since the netbackup commnands require you to be a superuser. Then, you can have ssh access to that account and run the scripts you want remotely. If you want to use Jsch, you jave to download and install Java criptography Extension in C:Program FilesJavajre6libsecurity. But I could not do that since I want not allowed due to company policies. So, I created powershell scripts that my Java program runs in order to connect and run the reports and put the output in a text file.

Opscenter 等应用程序已经为您创建报告;但是,如果您遇到像我这样需要自定义报告的情况,这就是您要走的路.

There are applications such as Opscenter that already create reports for you; however, if you are in a situation like me where you need customized reports, this is the way to go.

希望这会有所帮助.

这篇关于“算法协商失败"尝试连接到 Symantec NetBackup 时出现 JSch 错误 - 远程获取报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:“算法协商失败"尝试连接到 Symantec NetBackup 时出现 JSch 错误 - 远程获取报告