To know which IP executed a certain command in linux using ssh [migrated]

view full story

http://stackoverflow.com – There is a server which is accessed by many users using ssh. I am trying to figure out which user executed a certain command. I can know the list of users currently accessing server using who Also I will know the list of command executed using history. But how to know which user executed a command like cp file1.sh file2.sh in the server? (HowTos)