(1) Configure Host Name
# vim /etc/sysconfig/network
(2) Configure IP Address, Gateway and DNS.
Validate these profiles:
a) Check gateway: # vim / etc / sysconfig / network
b) Check Host Name: # vim /etc/hosts
c) Check DNS: # vim /etc/resolv.conf
d) Check Gateway: # vim /etc/sysconfig/network-scripts/ifcfg-eth0
Question 1
In accordance with the following requirements to deploy ssh login service:
(1) Make example.com which can remote login your systems.
(2) Where, users of remote.test can not use ssh login to your machine.
[root@server1 ~]# grep sshd /etc/hosts.allow
sshd:.example.com
[root@server1 ~]# grep sshd /etc/hosts.deny
sshd:.remote.test
Note:
tcp_wrappers has two configuration files and their priority level is
/etc/hosts.allow->/etc/hosts.deny
# vim /etc/sysconfig/network
(2) Configure IP Address, Gateway and DNS.
Validate these profiles:
a) Check gateway: # vim / etc / sysconfig / network
b) Check Host Name: # vim /etc/hosts
c) Check DNS: # vim /etc/resolv.conf
d) Check Gateway: # vim /etc/sysconfig/network-scripts/ifcfg-eth0
Question 1
In accordance with the following requirements to deploy ssh login service:
(1) Make example.com which can remote login your systems.
(2) Where, users of remote.test can not use ssh login to your machine.
[root@server1 ~]# grep sshd /etc/hosts.allow
sshd:.example.com
[root@server1 ~]# grep sshd /etc/hosts.deny
sshd:.remote.test
Note:
tcp_wrappers has two configuration files and their priority level is
/etc/hosts.allow->/etc/hosts.deny
No comments:
Post a Comment