Canned peaches last a long time, but not forever. If you're worried about keeping your canned peaches a little longer, you should try freeze-drying them.
Fresh peaches are simply delicious eaten raw but can also be baked into peach dessert recipes like peach pie, peach crumble ...