Hi,
Telnet is enabled by default, so if you can't connect that means:
a) telnet has been disabled (and maybe ssh only is enabled). As you can access by web, which is not default, that's a possibility
b) you are not on the correct vlan / IP subnet (maybe there's no IP at all).
When you say you connect directly to the switch in RJ45, do you mean in the Mgmt port, or an inband port? Are you sure the Mgmt port has an IP address configured, or that the inband port belong to a vlan with an IP configured? Are you, in either case, on the same IP subnet?