Tag Archives: Xshelln Connect to Local VM linux Error

[Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed

The error is shown in the following picture:

Solution:

Method 1:

Restart VMware, xsehell!

The second method:

1. Start SSH

service sshd start

2. Set SSH to start automatically

chkconfigsshd on

Note: if there is no SSH, install SSH first, and then perform the previous steps 1 and 2

yum install openssh-server

Finally, we go to xshell to test the connection