In a Word

apanthropy
n. a love of solitude

aphilanthropy
n. a dislike of social intercourse (“want of love to mankind” — Johnson)

misoxene
n. a hater of strangers