“算法协商失败";尝试连接到Symantec NetBackup时JSch中发生错误-远程获取报告 [英] "Algorithm negotiation fail" error in JSch when trying to connect to Symantec NetBackup - grabing reports remotely

查看:137
本文介绍了“算法协商失败";尝试连接到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?

记录器只告诉我这一点:

The logger only tells me this:

远程版本字符串:SSH-2.0-OpenSSH_5.1 本地版本字符串:SSH-2.0-JSCH-0.1.31 收到SSH_MSG_KEXINIT SSH_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命令要求您成为超级用户.然后,您可以通过ssh访问该帐户并远程运行所需的脚本.如果要使用Jsch,则需要在C:\ Program Files \ Java \ jre6 \ lib \ security中下载并安装Java密码学扩展.但由于公司政策,我不允许这样做,因此我无法做到这一点.因此,我创建了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 Files\Java\jre6\lib\security. 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中发生错误-远程获取报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆