• Natasha should have remote "SSH" access to your machine within example.com.
Clients within remote.test
should not "SSH" your system.
1. Check if open ssh is installed:
Or
2. Install openssh
#yum install sshd -y
#chkconfig sshd on
3. Set iptable rule for ssh service:
#iptables -I INPUT -p tcp --dport 22 -j
ACCEPT
#service iptables save
4. Allow SSH access to student user within
example.com domain
#vim /etc/hots.allow
sshd: natasha.example.com
5. Deny SSH access to remote.test
#vim /etc/host.deny
sshd: .remote.test
6. Restart ssh Service:
#service sshd restart
No comments:
Post a Comment