Could you upload a redacted version of the email? Get rid of anything that identifies you or the company - the community here might be able to help.
I agree with the majority of the advice here - get the server down immediately after preparing a new, security enhanced version.
Assuming the following:
* You use a key for access and not a typed password.
* You haven't done done anything to your distro to compromise security.
There are probably two likely routes of thinking here: * The key leak was internal to the company and you need to figure out who it was.
* The software your company wrote introduced a security vulnerability.
For the first one, you need to devise a method of catching them out - you at least want to know if it was an internal or external source. Assuming this person is smart, they'll probably be using a VPN or TOR so tracking their IP will be useless. Try the following: * You could set SSH to only accept incoming connections from your company (and your home IP as backup). Allowing SSH connections from arbitrary places is generally not a good idea.
For the second one, it would be good to know what sever software/libraries you are using as well as versions. `sudo nmap -sA ` your own server so we can see what you have running and possible entry points.Also:
* Patch SSH to send you all commands typed - if you've been compromised you at least want to know to what extent.
* Assume whatever data was on the server is now compromised - databases, passwords, usernames, emails, bank accounts, etc. You need to inform your customer base if their details are leaked. Internal or external they've already copied everything (I would have).
They are just some initial ideas - no doubt somebody will shoot them down but hopefully you can find some use in them.