Hej,
I would like to limit access to the cluster via hosts.allow and hosts.deny. What is the best way to do it?
I could create a script in /etc/qlustar/common/rc.boot/ that looks like this:
#!/bin/bash echo 'sshd: ALL' >> /etc/hosts.deny echo 'sshd: localhost' >> /etc/hosts.allow echo 'sshd: xxx.xxx.xxx.xxx' >> /etc/hosts.allow
Is that ok?
Cheers, Iggy
"I" == ignas bunikis ignas.bunikis@scilifelab.uu.se writes:
I> Hej, I would like to limit access to the cluster via hosts.allow I> and hosts.deny. What is the best way to do it?
I> I could create a script in /etc/qlustar/common/rc.boot/ that I> looks like this:
> #!/bin/bash > echo 'sshd: ALL' >> /etc/hosts.deny > echo 'sshd: localhost' >> /etc/hosts.allow > echo 'sshd: xxx.xxx.xxx.xxx' >> /etc/hosts.allow
I> Is that ok?
That should work.
All right, that does the job.