SSH access stops working

The switch was originally setup with SSH and Telnet access. After some undetermined amount of time SSH stops working. I need to disable Telnet for security reasons but am afraid to do so. If the SSH stops working I don't have any other way to remote into the switch. I have connected via Telnet, confirmed the key is valid, and restarted the exsshd process but I am still unable to connect via SSH.