If you use urxvt and ssh chances are you’ve ran into the same issue as I have:

$ clear
'rxvt-unicode-256color': unknown terminal type.

As it turns out, it’s quite easy to fix. All you have to do is copy over your local terminfo to the server which is giving you the problem.

create the terminfo folders on user@remotehost:

mkdir -p ~/.terminfo/r/

copy over the terminal profile ( urxvt in my case ):

scp /usr/share/terminfo/r/rxvt-unicode-256color user@remotehost:.terminfo/r/

All new ssh sessions will support the terminal profile you added :)