当前位置:网站首页>RHCE Course Summary
RHCE Course Summary
2022-08-09 14:48:00 【palm nine】
DNS, SSH experiment
Requirements:
1. Resolve the host ip address of www.qq.com through dns separation technology, realize the resolution of the internal network host to the internal network service host, and the external network host to resolveTo the external network host;
2. Configure A and B hosts to achieve password-free login;
Task 1 (Note: Only two virtual machines are used in this experiment, and A is used as the dns and test host)
1. Mount and install
Rename:
[[email protected] ~]# hostnameA
[[email protected] ~]# bash
[[email protected] ~]#
[[email protected] ~]# mount /dev/sr0 /mnt
[[email protected] ~]# yum install bind -y
Close the firewall, selinux
[[email protected] ~]# systemctl stop firewalld
[[email protected] ~]# setenforce 0
[[email protected] ~]# systemctl start named
2. Modify the file
[[email protected] ~]# vim /etc/named.conf

Modify the corresponding file of the intranet:
[[email protected] ~]# vim /var/named/named.qq.com

Modify the corresponding file on the external network:
[[email protected] ~]# vim /var/named/named1.qq.com
Modify the corresponding resolution ip of www:

Reboot:
[[email protected] ~]# systemctl restart named
Test:
On the 192.168.43.128 intranet host:
The result of parsing the intranet ip:
On 192.168.43.130 external network host
Parse the result through the external network ip:
Success
Task 2,
A is the client, B is the server
Generate an asymmetric key on A;
Keep pressing Enter without modifying the path or setting the password information:
View:
B:
Create a .ssh directory for receiving public keys
A: Send the public key file to B

B:
Test:
A:
The experiment was successful
边栏推荐
猜你喜欢
随机推荐
阿里云PAI与香港大学合作论文入选INFOCOM 2022,有效减少大规模神经网络训练时间
三子棋的代码实现
汇编语言学习(九)
RHCE课程总结
ELK deployment
C语言中的 pow 函数 使用方法及注意事项,和常见报错原因,且分享实战中的使用
C语言 最大公约数,最小公倍数(详细注释代码 一次解决)
C语言 函数问题
【视频编码学习】——SAD和SATD
apt-get install 和pip install 的区别
Firewalld防火墙基础
RHCE Course Summary
202五一杯数学建模ABC三题
回归测试如何确定测试范围
dpkg:错误:无法新建文件 ‘/var/lib/dpkg/info/format-new’: 没
现实版商战:“武功再高,也怕菜刀”
C语言,if循环 for 循环 while循环 switch循环 do...while()循环
vs怎么用一个Button链接到另一个页面
Bubble sort (detailed)
响应式pbootcms模板建材家居类网站









