Long distance relationships can absolutely work and they very often do. The most important thing in a long distance relationship is to have a fixed target to work towards and to be making realistic plans towards that target.
If you are not sure when you will be together and have nothing concrete to even hope for then it all seems like fantasy and it becomes impossible. If you have a realistic timeframe in mind for being together and you are actually laying down plans and commitments then you can see the finish line and you can see it getting closer as the time passes. That provides both focus and motivation.
You have a finite period in which this will be long distance, the six months that you have mentioned. That shouldn't really be too hard to cope with. Take advantage of whatever communication methods you can, such as phoning, texting, chatting online, webcamming or even writing letters. Keep in touch with each other and keep yourselves involved in each others' lives.
If two people are committed to something and are actively investing in it then it will happen. The only threats to a long distance relationship are a lack of commitment and a lack of investment.
One note of caution, don't go into overkill with communication. What I mean by that is, to expect to chat for 2 hours every single night could become unrealistic after a while because there is only so much to talk about. It helps to leave a little time inbetween long conversations in order for some 'life' to have happened. A long conversation every few days, with more brief communication inbetween, tends to provide a better balance. Once communication becomes forced and trivial then it can seriously start to grate. That's just a tip from my own experience that you are free to ignore if you wish