Allow scp from only a particular group of systems for a particular group. I think an example will be more effective to understand my requirement.
Users : user1, user2, user3 utpto user20 ( All this user have separate credentials for access TargetPC )
ClientPCs : PC1,PC2,PC3,PC4 upto PC20 ( all have common credentials to login)
TargetPC : TGTPC ( OS:Ubuntu )
IP Address of all the systems are static ( users don't have rights to modify this )
My requirement is user1 to user10 should able to do scp to TGTPC using their credentials from PC1 to PC10 ONLY ( if they try to do scp from any other system it should fail)
same way user11 to user20 should able to do scp to TGTPC using their credentials from PC11 to PC20 ONLY ( if they try to do scp from any other system it should fail)