Finalshell (SSH) connection to the virtual machine timed out java.net.ConnectException: Connection refused【Solved】

Finalshell connection virtual machine timed out java.net.ConnectException: Connection refused【Solved】


Recently learning Liunx, the connection to the virtual machine has been timed out, and the problem has been checked and solved overnight. I will record it myself to prevent forgetting. (If you need to install the package, you can leave a message)
1. The IP network segment of the virtual machine is different from the local IP network segment
. 2. The network adapter is abnormal and needs to update the driver,

The IP network segment of the virtual machine is different from the local IP network segment

insert image description here


insert image description hereThe solution is
to turn on the bridge mode
insert image description hereinsert image description here
. Be careful not to choose automatic here and you need to connect to your host. insert image description hereNote that if it appears: the network cannot be changed to a bridged state and there is no unbridged host network adapter.
insert image description here
Restore the default state insert image description here
and then set it in the virtual machine settings. After setting the network adapter VMnet0, insert image description here
insert image description here
find the virtual machine ip address. If the ip address is displayed as garbled characters, follow the instructions below to modify the file content to initialize the network connection
insert image description here
and then check the virtual machine address.insert image description here

You can connect successfully in Finalshell (if your ip is not wrong)
insert image description here

network adapter problem

1. The driver has not been updated or the registry is abnormal because it has not been deleted.
Update the driver and update the driver on Baidu.
2. If the update fails, the registry may be blocked.
Download ccleaner to clean the registry
. Download link: https://www.ccleaner.com/zh -cn/ccleaner/download/standard
insert image description here

Guess you like

Origin blog.csdn.net/qq_43433185/article/details/130098396