VMware Cloud Community
DuraiSR
Enthusiast
Enthusiast

Unable to connect the Server using SSH

Hi

The subject was we have two VM 3 Infra configured in different Location ,when i try to connect is shows me the error

\[root@vm23 root]# ssh root@192.130.37.124

ssh: connect to host 192.140.37.124 port 22: Connection refused

I have checked in Firewall Policies no issue in that

0 Kudos
2 Replies
jjohnston1127
Hot Shot
Hot Shot

Root login is denied by default unless you edit the sshd config file.

In /etc/ssh/sshd_config there is a line PermitRootLogin no

Change it to PermitRootLogin yes

then service restart sshd

You'll also have to manually create a user on the ESX host and give it sudo permissions to do the above. You can do that with the VI client

tommi00
Enthusiast
Enthusiast

The PermiRootLogin does not seem to be the issue since he gets "connection refused" I would rather go for firewalling issues.

Are the VMs and the ESX servers on the same subnet, if not is there a firewall in between?

I think you can go with the assumption that routing, default gateway and such are all right.

0 Kudos