SSH to iPhone 4 will not work

I just jailbroke my iPhone 4 6.0 a couple nights ago. It worked just fine, and i used redsn0w 0.9.13dev4 and then used terminal on my mac to use SSH to install Cydia, since this version of redsn0w doenst come with Cydia. I was installing apps and themes etc, but then i thought my phone locked up, so i did the reboot, holding the power button and the home button until the apple logo popped up. It restarted and then non of the jailbreak apps worked. I realized later on that i need to do a tether boot, and that is why nothing was working, most likely...

Anyway, me thinking that i needed to do everything all over again, i restored my phone and backed it up over iCloud. All my apps downloaded and everything was peachy, but when i went to jailbreak the phone this time, it didnt work properly. I jailbroke it with the same redsn0w edition, but when i had to install Cydia via SSH, this is what popped up:

ssh: connect to host 192.168.0.14 port 22: Connection refused

idk why it is doing this, i have been looking for a couple days trying to find a solution. I have restored my iphone over and over again and re-jailbreaking it, i have tried to SSH through other computers, no luck their either. I check the IP addresses to make sure it was right, and it was. I opened up the necessary ports on my router. Idk what else to do. I hope that someone here can help me, because it is really pissing me off, and i dont know why it worked the first time, but didnt work the second or third or forth, etc.
Have you tied jailbreaking before restoring from iCloud?
Try doing in the "Welcome Setup" right after you choose a wifi network.
Tried it, and it still didnt work. Same exact problem. The SSH wouldnt work.
Might seem obvious and stupid, but did you tether reboot it after jailbreaking the phone before trying to install Cydia

I ask as I forgot that step first time round lol 😮
its also possible that your router assigned your "new" (you restored it, remember) iphone a different ip address... are you sure your using the correct address?

another thing, not sure its relevant, is that when i was using winSCP wirelessly, for no particular reason my iphone 4 wouldnt connect at all, then minutes later everything would be great..., since then ive switched to programs like ifunbox that allows terminal through a wired connection.
I did do a tethered boot after every attempt to jailbreak. I also checked the ip address every single time to make sure it was right every time.

Original thread: https://forums.imore.com/threads/ssh-to-iphone-4-will-not-work.242043/