When did the bombing of Sydney harbor occur?

The first attack was on the night of 31 May - 1 June 1942 by a Japanese midget submarine.

The second was a shell attack by the mother submarine on 8 June 1942. This didn't exactly land in the harbour itself, but landed in the Eastern suburbs. It is thought that it was intended to strike the bridge.