Linux server installation and configuration telnet

1. Prepare two linux servers, one is the server and the other is the client. Configure the static ip address for the server, and configure the two servers to communicate normally

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
IPADDR=192.168.32.179
GATEWAY=192.168.32.2
NETMASK=255.255.255.0
DNS1=8.8.8.8
[root@localhost ~]# service network restart

2. Please install and configure the telnet service on the linux server, and set the telnt service to start automatically after booting

[root@localhost ~]# yum -y install telnet telnet-server
[root@localhost ~]# chkconfig xinetd on
[root@localhost ~]# vim /etc/xinetd.d/telnet
disable         = on
[root@localhost ~]# service xinetd start

3. Please create an ordinary user test to log in remotely

[root@localhost ~]# useradd test
[root@localhost ~]# tail -1 /etc/passwd
[root@localhost ~]# passwd test

4. Please install the telnet client on the linux client, and use the telnet client to remotely log in to the linux server to operate, and the login is successful

[root@localhost ~]# yum -y install telnet
[root@localhost ~]# telnet 192.168.32.179
login: test
Password:
[test@localhost ~]$ ifconfig 

5. You can continue to use the two linux servers mentioned above, please check whether the ssh service status is started on the Linux server side, and check whether the sshd service is self-starting after booting

[root@localhost ~]# ps -ef | grep sshd

6. Please use ssh on the linux client to remotely log in to test as user test

[test@localhost ~]$ ssh [email protected]
Are you sure you want to continue connecting (yes/no)? yes
[email protected]'s password:
[test@localhost ~]$ ifconfig

7. Please use xshell or other ssh client software to log in to the linux server on the windows system

Insert picture description here

8. Please install and configure tigervnc service on the linux server

yum -y install tigervnc-server

9. Create a common user for the tigervnc service and set a password for logging in to vnc for use as a login

[root@localhost ~]# vncserver
Password:  六位数密码第一遍
Verify:   第二遍确认

10. Start the vnc server, and set it to start automatically when booting, use the vnc client to log in and test

[root@localhost ~]# vim /etc/sysconfig/vncservers
VNCSERVERS="1:root"
[root@localhost ~]# service vncserver restart

Guess you like

Origin blog.csdn.net/qq_46023525/article/details/106909528