There are a zillion distros that come without a window manager or desktop environment. A completely bare bones example would be Arch, like ioku said. The downside is that it is, like I said, bare bones. It doesn't have a lot of pre-installed programs that you might want, such as ssh.
If you want something that is terminal based, but is more fully featured, something like Ubuntu server would be a good choice since it's a bit more of a user-friendly introduction, and it is very likely to work right out of the box, so to speak, where Arch will probably require more fiddling around.
Those are just two examples though, there are tons of Linux distributions, and so do some research and try to find one that suits your needs.
This question may be worth rephrasing as right now it appears to be asking for a product recommendation, which is Off Topic for superuser.com. – 0xDAFACADE – 2014-10-01T18:45:11.237