We have this requirement that we may able to communicate with each other by SSH but we cannot copy files from the other computer using SCP.
For example, we have 2 computers, which is computers 1 and 2. We can actually communicate with each other using SSH(tested it using terminal, ping each other using the ip address of the other computer or vice versa). And we can also copy each other's file using SCP. But then we had this requirement that computer1 should NOT able to get a file or send from/to computer2. And yet can still ping each other using each others IP ADDRESSES(using the terminal). And computer2 is like the master computer it has the capability of getting or sending file from computer1, while computer1 can ping computer2 using ip address but cannot send or receive any file from computer1.
Can someone help us with this requirement? I'm searching all over the internet and yet I can't find a solution.
And what are the codes should I be using?
Our topic is all about IPTABLES but then i can't see the logic of using it with IPTABLES or maybe i just don't know how to configure it, or there maybe other solutions you guys can suggest?
OPERATING SYSTEM: Linux Centos both computers
Thank you. This would be a very big help for me.