You would connect pins 2 (step) and 3 (dir) of port 2 to the G251 step and dir pins just like it's done with the other 4 drives on port 1. Then in Mach3: config->ports and pins, enable the B axis and set pin2 port 2 for the step and pin3 port 2 for dir. You will have to look in the manual for the G251 pinouts for step,dir, ect.. As far as I know both the SS and Mach3 are supposed to be capable of driving up to 6 axis.
TJ
EDIT: I missed the part where you were using port2 for the A axis. You can put it pretty much anywhere on pins 2 thru 9 on either port, it's how you set it in config that counts. It could even be b=pins 2 & 8. I think most people use the 2/3=x 4/5=y, 6/7=z convention cause it's easy to think about it that way.