thanks atledenin but that error only came up after the miner rebooted so the ssh connection was lost. I did rename the cgminer file back but the miner didnt start mining again. I ended up having to reflash back to factory settings and inputting my details in again. oh well at least it's mining again

but with old cgminer
