You can not connect to ssh over wifi with the 10.2 jailbreak. You need to ssh over USB. They are several options but the easiest is to use iproxy.
- Install iproxy
brew install libimobiledevice - On the terminal run the following command.
iproxy 2222 22
This will enable you to forward all traffic from port 2222 to port 22 over USB - Now you can connect to the iPhone by running ssh
ssh root@localhost -p 2222
Notice you connect to localhost not the ip address of your phone. If everything went well, you should be presented with the ssh prompt.