You can befriend the guards only once. Once you've completed the quest, further saluting (even in a different city) will result in you assisting the guards in the important business of poking passers-by.