exam questions

Exam EX300 All Questions

View all questions & answers for the EX300 exam

Exam EX300 topic 2 question 19 discussion

Actual exam question from RedHat's EX300
Question #: 19
Topic #: 2
[All EX300 Questions]

In accordance with the following requirements to deploy ssh login service:
1. harry belongs to example.com which can remote login your systems.
2. However, users of remote.test can not use ssh login to your machine.

Show Suggested Answer Hide Answer
Suggested Answer: See Explanation
[root@server1 ~]# grep sshd /etc/hosts.allow sshd:.example.com

[root@server1 ~]# grep sshd /etc/hosts.deny sshd:.remote.test
Notice:
tcp_wrappers has two configuration files and their priority level is
/etc/hosts.allow->/etc/hosts.deny

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
snota45
5 months, 1 week ago
echo sshd:.example.com >> /etc/hosts.allow echo sshd:.remote.test >> /etc/hosts.deny
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago