I normally ssh into a remote server, for which I previously set an option that allows me not to type my password every time. Now that I forgot it, is there any way to retrieve it?
No. User account passwords on Unix systems are saved with one-way encryption and cannot be retrieved. They can only be reset. You will need to login as root or some other privileged account and reset the password for your user.