Amasa was the son of the sister of Joab's mother.
This was a common way for men to greet one another.