First, you will find the virtual machine Settings (edit VM settings)
These two have to be hooked up;
Bridge mode OK, found that the virtual machine can ping the host, the host agreed to also ping the virtual machine, stating: Network no problem;
Then run the following command on the virtual machine
- Service iptables stop//firewall off
- Service sshd start//start sshd Services
If the above two are running, or not, is the SSH port number is not set the correct reason!!!!!!! (That's why I've been looking for 1 hours to find out that the problem is here.)
, first, we view the SSH port number on the virtual machine
- View SSH Run command: cd/etc/ssh/
Then run: Cat Sshd_config
Find port port number defaults to 10022, some 22
So, when we use SECURECRT remote connection to the virtual machine, the port number can only fill 10022 (must be consistent with this)
Note: If you modify the port number, be sure to run the command: service sshd restart
Over ...
Virtual machine main functions ping each other, but cannot connect remotely