简体   繁体   English

无法在群集中不同主机上的来宾VM之间进行SSH SSH

[英]Unable to SSH between guest VM's which are on different hosts in cluster

I'm having problems SSH'ing between ESXi guests that are on different hosts within the cluster. 我在群集内不同主机上的ESXi guest虚拟机之间使用SSH时遇到问题。 I've one guest that is on the routable cluster virtual network that I am using as a bastion server to access guests on a private network - the distributed port group spans all hosts. 我有一个来宾在可路由群集虚拟网络上,该我用作堡垒服务器来访问专用网络上的来宾-分布式端口组跨越所有主机。

I'm using SSH ProxyJump to route through the bastion host to the other guest VM's. 我正在使用SSH ProxyJump通过堡垒主机路由到其他来宾VM。 When the guests on the private network are on the same cluster host as the bastion there is no problem. 当专用网络上的访客与堡垒位于同一群集主机上时,就没有问题。 When the guests are on a different host, I get a connect refused by the remote server error. 当来宾位于其他主机上时,远程服务器错误拒绝了我的连接。 If I manually migrate the VM to the same cluster as the bastion, the error goes away. 如果我将VM手动迁移到与该堡垒相同的群集,该错误就会消失。

I found this answer which relates to SSH'ing between ESXi hosts, not guests on hosts, and suggests that SSH Client needs to be allowed on the outgoing firewall of each host. 我找到了这个答案, 答案与ESXi主机之间(而不是主机上的来宾)之间的SSH相关,并建议需要在每个主机的传出防火墙上允许SSH客户端。 It seems like it could be relevant, but my vSphere knowledge is limited and I don't have sufficient admin rights to make this change myself. 看来这可能是有意义的,但是我的vSphere知识有限,而且我没有足够的管理员权限来自己进行更改。

I'd be grateful if anyone could confirm if my inability to SSH between guests on different hosts is as a result of not having SSH Client enabled in the outbound firewall or if there is some other reason why I can't get an SSH connection? 如果有人能确认我无法在不同主机上的来宾之间进行SSH是由于没有在出站防火墙中启用SSH客户端而导致,或者是否有其他原因导致我无法建立SSH连接,我将不胜感激。

From the link you posted: 通过您发布的链接

You need to open the required ssh ports in the ESXi firewall. 您需要在ESXi防火墙中打开所需的ssh端口。

In the vSphere Client check the host -> Configuration -> Security Profile -> Firewall -> Properties 在vSphere Client中,检查主机->配置->安全配置文件->防火墙->属性

and enable "SSH Client" if you need outgoing scp connections resp. 如果需要传出的scp连接,则启用“ SSH客户端”。 "SSH server" if you want to enable incoming scp connections. 如果要启用传入的SCP连接,则为“ SSH服务器”。

Instead of opening SSH client for outgoing firewall of each host, please configure it this way: 请勿为每个主机的outgoing防火墙打开SSH client ,请按以下方式进行配置:

Outgoing Server Receiving Server SSH Client -> Outgoing firewall -> Incoming firewall -> SSH Server

这是一个潜在的网络问题-物理交换机丢弃了我的VLAN标记的数据包,因为未在其上配置VLAN ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM