camaraderie

(n) a spirit of friendly good-fellowship
Although we started the hike as strangers, the adversity of the climb created a camaraderie between us.