One host connects to the ubuntu virtual machine in another host through ssh

Host A wants to connect to the Ubuntu virtual machine in another host B through ssh, the steps are as follows:

  1. The Ubuntu virtual machine in host B installs openssh and starts the ssh service.
  2. The virtual machine network mode is selected as bridged .
  3. To determine the ip address of host B, use the ip addr command. What you get is an ip starting with 10.
  4. Host A connects to this ip via ssh.

Guess you like

Origin blog.csdn.net/qq_44345567/article/details/112060651