It really all depends on how deep the scratches are?
Since you have dark green color if the scratch is showing light green then it isn't very deep and rubbing compound will work well.
If scratch is showing gray or white then it is down to primer level, rubbing compound may color it enough so it is less noticeable but it really needs some match color paint.
If you see metal color then scratch is very deep and it may even be dented, it will rust.
So that needs to be cleaned up and primed, then painted with matching color.
Primer paint is used because it will stick to metal, colored paint doesn't, so if you have bare metal remove the rust and primer it first, colored paint will stick to primer.