telnet configuration and simple usage

Telnet belongs to the TCP / IP protocol suite, it is the main way Internet standard protocols and telnet services. It provides the ability to complete the work of the remote host on a local computer user. Using the telnet program on the end user computer, using it to connect to the server. The end user can enter commands in the telnet program, these commands will be executed on the server, just as input directly on the server console. To open a telnet session, you must enter a user name and password to login server.

 

First, the Tools / materials

  • Telnet server and Telnet client
  • Two PC machine, the virtual machine can also be, (here with a virtual machine and virtual machine system win7 XP system)
  • Network mode two virtual machines are "bridge mode"
  • Closed two virtual machines behind a firewall into the system, or it may not ping each other

 

Second, the method / step

1, configure the telnet service on the PC

1.1 disposed on win7 system

win7 system IP address (192.168.1.6/24) information, and the communication system of XP

1.1.1, open the telnet program 

Open the "Control Panel" - "Programs" (see the top right corner of the way to 'category') - "Programs and Features" - "Turn Windows features", the "Telnet Server" and "Telnet Client "hook

1.1.2, start the telnet service

Right "Computer" - "Management" - "Services and Applications" - "service"

Find the "Telnet", right "property," Startup type "Automatic" - "Applications"

And then start the "Telnet" service

1.1.3, check telnet service is installed successfully

Open a command window cmd, enter "telnet -help", without prompting "telnet is not an internal or external command," said the installation was successful

 

1.2 on XP system configuration

XP system ip address (192.168.1.7/24) information, and the communication system of win7

1.2.1, open the telnet program

XP system is enabled by default telnet program, so we just need to start the telnet service can

1.2.2, start the telnet service

Right "My Computer" - "Management" - "Services and Applications" - "service"

Find the "Telnet", right-click "Properties" startup mode to "Auto"

 Start the telnet service

1.2.3、检验telnet服务是否安装成功

打开命令窗口cmd,输入“telnet -help”,没有提示“telnet不是内部或外部命令”则表示已安装成功

 

2、使用telnet远程访问主机(此处用XP系统访问win7系统)

若使用Telnet协议远程访问主机,其访问主机和被访问主机都必须安装相应Telnet服务,被访问主机需将用户组中某个用户添加为隶属于TelnetClinets组,其访问主机输入用户名和密码才可访问被访问主机。

2.1、在被访问主机上添加某个用户隶属于TelnetClients组

右键“计算机”——“管理”——“系统工具”——“本地用户和组”——“用户”——“属性”——“隶属于”——“添加”

在“输入对象名称来选择”输入“TelnetClients”——“确定”

2.2、用telnet [被访问主机ip地址] [端口号]命令访问远程主机

打开命令窗口cmd,输入命令 telnet 192.168.1.6

输入y,回车

 输入被访问主机用户名和密码

 已进入win7系统的命令窗口,telnet远程访问成功

 

 

Guess you like

Origin www.cnblogs.com/tom-blogs/p/11845238.html