尝试SSH到受信任的服务器 [英] Trying to SSH to a trusted server

查看:56
本文介绍了尝试SSH到受信任的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过SSH连接到受信任的服务器,而不使用密码,但我收到此错误:

null

[Ljava.lang.StackTraceElement ; @ 3b1d04



这是我正在使用的代码:

展开 | 选择 | <跨度类= codeDivider > | <跨度类= codeLink的onclick = LineNumbers(本);>行号

解决方案

我已经通过为known_hosts文件输入正确的路径名修复了上述错误,但现在,我如何进行身份验证?

进入这些服务器不需要密码,因为它是受信任的。


@ ndedhia1,

作为身份验证过程的一部分,您应该取回SSL证书。您必须验证它是否来自可信证书。


使用SSL,有几个标准身份验证提供程序,它们允许您将证书提交给他们。这些提供者是自我宣称的,并且只有在社区接受它们时才被接受。


如果需要,您可以提供自己的根身份验证服务器。我在过去做过这件事是为了让管理人员在获得真正的证书时不要哭得太多。


希望这会有所帮助。


干杯!


嗨Oralloy,

感谢您的帮助!!

您是否拥有SSL证书的任何代码示例?你在说什么?


现在,我正在做这样的身份验证:

< DIV类= codeHeader> <跨度类= codeLink 的onclick = 模糊(此,this.parentNode.parentNode,的getChildren(本),TRUE);>展开 <跨度类= codeDivider> | 选择 | Wrap | 行号

I am trying to SSH to a trusted server, without using a password but I am getting this error:

null
[Ljava.lang.StackTraceElement;@3b1d04



This is the code that I am using:

Expand|Select|Wrap|Line Numbers

解决方案

I have fixed the above error by putting in the correct path name for the known_hosts file, but now, how do i authenticate?
There is no password that is needed to get onto these servers because it is trusted.


@ndedhia1,

You should get back a SSL certificate as part of the authentication process. You''ll have to verify that it is derived from a trusted certificate.

With SSL, there are several standard authentication providers, and they let you root your certificate to theirs. These providers are self proclaimed, and only accepted because the community accepts them.

If you want, you can provide your own root authentication server. I''ve done it in the past to keep managers from crying too much while the real certificates are acquired.

Hopefully that helps some.

Cheers!


hi Oralloy,
thanks for the help!!
Do you have any code examples of the SSL certificates you were talking about?

Right now, I am doing the authenticating like this:

Expand|Select|Wrap|Line Numbers


这篇关于尝试SSH到受信任的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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