当主机操作系统 (Ubuntu) 远程登录 Virtualbox 的客户操作系统 (Windows XP) 时,连接被拒绝

当主机操作系统 (Ubuntu) 远程登录 Virtualbox 的客户操作系统 (Windows XP) 时,连接被拒绝

我无法在我的 ubuntu 机器上 telnet 到客户操作系统(Windows xp),但我可以成功 ping 其 IP 地址。

在客户操作系统的网络设置中,我启用了两个适配器。以下是两个适配器的设置。

对于第一个适配器:

Attached to: NAT 
Adapter: Intel PRO/1000 MT Server(82545SEM)
Promiscuous Mode: Deny 
Cable Connect: enabled

对于第二个适配器:

Attached to: Host-only Adapter
Name: vboxnet0 
Adapter: Intel PRO/1000 MT Desktop(82545SEM)
Promiscuous Mode: Deny 
Cable Connect: enabled

我添加了端口1234在客户操作系统的 Windows 防火墙设置例外中仅用于测试。我可以 ping IP 地址并 ssh 主机操作系统。

这是我执行telnet命令的结果。

user@micmic:~$ telnet 192.168.56.101 1234
Trying 192.168.56.101...
telnet: Unable to connect to remote host: Connection refused

答案1

确保您安装了以下软件包:

sudo apt-get install ssh
sudo apt-get install telnetd-ssl
sudo apt-get install openssh-server

相关内容