From where did the soldier greeting derive from?

by _professional_
Jasfss

Can you elaborate on your question a little more? It's fairly unclear as it stands right now what you're asking.

bartieparty

Knights in armor raised visors with the right hand when meeting a comrade. This practice gradually became a way of showing respect and, in early American history, sometimes involved removing the hat. By 1820, the motion was modified to touching the hat, and since then it has become the hand salute used today.