I'm having machine A @ x.x.x.x (static IP) address. another machine B @ y.y.y.y( no idea about the IP.dynamic one).

I want to connect the B's ssh server from A. Is there any way to connect ?

(I can run small application in B to connect A.But i donno how to pass the socket discriptor to the ssh client and ssh server in both sides)