linux服务器安装配置telnet

1. 准备两台linux服务器,一台为服务器端,一台为客户端,为服务器配置静态ip地址,配置两台服务器网络通信正常

[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. 请在linux服务器端安装配置telnet服务,并将telnt服务设置为开机自动启动

[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.请创建一个普通用户test,以远程登录使用

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

4. 请在linux客端端安装telnet客户端,并使用telnet客户端远程登录到linux服务器端操作,登录成功得分

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

5. 可以继续使用上题的两台linux服务器,请在Linux服务器端检查ssh服务状态是否为启动,并检查sshd服务是否为开机自启

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

6.请在linux客户端通过ssh,使用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. 请在windows系统上使用xshell或者其他ssh客户端软件登录linux服务器

在这里插入图片描述

8. 请在linux服务器上安装并配置tigervnc服务

yum -y install tigervnc-server

9. 为tigervnc服务创建普通用户并为其设置登录vnc的密码,以用作登录使用

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

10. 将vnc服务器启动,并设置为开机自动启动,使用vnc客户端登录测试

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

猜你喜欢

转载自blog.csdn.net/qq_46023525/article/details/106909528