前期使用virualBox 通过SSH与主机通信没什么问题,今天重新安装了一次,通过putty和 SSH都无法接通。
但是,虚拟机与主机ping和主机与虚拟机ping都能通过。
解决方法:
1)在ubuntu中安装 openSSH。
sudo apt-get install openssh-service
sudo apt-get install openssh-client
前期使用virualBox 通过SSH与主机通信没什么问题,今天重新安装了一次,通过putty和 SSH都无法接通。
但是,虚拟机与主机ping和主机与虚拟机ping都能通过。
解决方法:
1)在ubuntu中安装 openSSH。
sudo apt-get install openssh-service
sudo apt-get install openssh-client