Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

Are you choosing sftp every time?
 
I've always used the the SCP Protocol. I don't think I've ever got it to work using SFTP?
 
Make sure you have afc2add

Download ifunbox.

It will let you transfer files much faster than ssh
 
Make sure you have afc2add

Download ifunbox.

It will let you transfer files much faster than ssh

OP didn't say anything about "transferring file" maybe he want to run some Shelf Commands?

Anyway, check that SSH (OpenSSH) is up an running on the Phone, if you have the SBseeting toggle, toggle it off them on, and also try using mobile terminal (if you have it)
 
OP didn't say anything about "transferring file" maybe he want to run some Shelf Commands?

Anyway, check that SSH (OpenSSH) is up an running on the Phone, if you have the SBseeting toggle, toggle it off them on, and also try using mobile terminal (if you have it)

Yup I use the sbsetting toggle to enable/disable SSH. Its real strange sometimes it will connect but normally wont :(
 
I had a similar issue with SSH and timing out. Turns out the problem was my router. Unplugging it and replugging it back in after a minute fixed the issue.
 
I had a similar issue with SSH and timing out. Turns out the problem was my router. Unplugging it and replugging it back in after a minute fixed the issue.

Thanks for your advice, tried that and yes it worked once. But I dont really wont to have to keep on having to reboot my router just to connect via SSH to my iP4 :(

Once I connect, if I dont open files in winscp for like 30seconds or so it seems to disconnect itself-not sure why it does that either :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.