使用netterm连接linux虚拟机

使用netterm连接linux虚拟机,实现了主机和虚拟机之间的通信即可以使用netterm连接虚拟机。

PS:要确定service xinetd start已经运行。

[@more@]

一、在linux虚拟机中启动telnet服务:

(1)编辑/etc/xinetd.d/telnet,将disable值改为no;

(2)激活服务,service xinetd restart;

(3)测试telnet服务,telnet ip(hostname);

(4)设置telnet端口,编辑/etc/services文件,找到telnet 23/tcp,telnet 23/udp,修改其为未使用的端口号;

(5)修改telnet中root用户不能登入问题:

因为telnet不安全,因此一般默认不允许root用户登入,若要允许,修改以下配置:

编辑/etc/pam.d/login文件

#auth required pam_security.so这一行注释掉或者是

mv /etc/securetty /etc/securetty.bak

二、使用host-only方式

1、更改虚拟机网络连接方式为host-only,并在主机真实网卡的属性的“高级”标签中设置其为共享,共享网卡为vmnet1.

2、更改虚拟机IP或者vmnet1 IP,使两者IP在同一个网段。

例如vmnet1 IP为192.168.0.10,虚拟机IP为192.168.0.100,子网掩码为255.255.255.0.

3、使用netterm访问虚拟机(前提当然是linux虚拟机是运行状态喽),在“文件”的“地址簿”中,设置你的虚拟机IP以及其telnet端口(前面所设定的端口号)即可顺利访问了。

三、使用bridge方式

1、设置linux虚拟机的IP,使其和主机真实的IP处于同一个网段,包括设置网关和DNS。

2、使用netterm访问虚拟机(前提当然是linux虚拟机是运行状态喽),在“文件”的“地址簿”中,设置你的虚拟机IP以及其telnet端口(前面所设定的端口号)即可顺利访问了。

四、使用nat方式

不用配置IP,直接使用上述netterm连接访问虚拟机方式即可。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22534063/viewspace-1026923/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22534063/viewspace-1026923/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
netterm 连接工具 NetTerm is a general purpose communications program designed to work with bulletin boards, local area networks, and the Internet network. Terminal emulation includes VT-52, VT-100, VT-220, VT-320, QNX 2, TVI-925, WYSE-50, IBM-3101, IBM-3151, IBM-3161, IBM-3163, XTERM, SCO ANSI, ANSI, Nixdolf BA-80, and FTTERM. So what is the difference between bulletin boards, local area networks, direct connections and the Internet? In short, the method that you use to connect to the host. If your computer contains a network card, you are on a local area network; if your local area network is connected to the Internet, you are both locally connected as well as Internet connected. If you must dial an Internet provider and establish a PPP or SLIP connection, then you are connected to the Internet. If you must dial a site direct, without using Trumpet or the Windows 95/NT dialup services, then you are using a direct modem connection, normally a bulletin board. NetTerm supports all of these. You should also be aware that NetTerm can handle any combination of the above. For example, you can have a NetTerm session connected to a host on the local area network, a site connected via the Internet, and a site connected by a direct modem connect all at the same time. All of the combinations are controlled through the phone book. So what emulation do I need? Well the answer to that depends upon the host that you connect to. Most sites will document the required emulation in their access documents, while others will provide a menu selection at connect time which allows you to specify the emulation type. In either case you must provide the emulation type in the phone book for that host. A good selection is ANSI if you are not sure. To use NetTerm, you first must determine your connection type and create a phone book entry for the host that you desire to connect to. In general, there are two major ways to connect to a host, (1) via direct modem dialup or (2) by a network either connected directly or by a dialup line. The connection type is referred to as Modem and TCPIP respectively. Although NetTerm contains many options, a new user can get up and running very quickly once the connection type is determined. For example, most users connect to the Internet with the Windows 95/NT dialup software or Trumpet under Windows 3.x. In this case, your phone book connection type will be TCPIP. NetTerm ships with several example phone book entries to help new users to get online quickly.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值