Fix – SSH Error Bad file descriptor
If you are getting the error bad file descriptor while establishing remote connection to another server, it seems you have configuration error for you SSH server’s port.
Outgoing connections are blocked by firewall, or port is blocked for outgoing connections in firewall.
Add the PORT Number in outgoing enabled port list in firewall, for CSF you need to add it in TCP_IN and TCP_OUT ports list.
Feedback are appreciated : )