I've done plenty of remote debugging over ssh with portforwarding on openshift - not sure if I always had local and remote port being the same though; sounds weird if it has to be.
Just setup ssh portforwards and use remote debugging to connect to localhost:<forwarded port>