Getting an error message: ' Unable to open shell, rc:255'

Hi ,
I am getting this error message and the logs are not showing anything different. I have used the ping and shell module separately to test the connection and it works. Please suggest a solution.