First what you have to do is run this command in ssh when you are in your home folder.
echo “export INPUTRC=/etc/inputrc” >> .profile
The create the /etc/inputrc file with the following content:
“\e[1~”: beginning-of-line
“\e[4~”: end-of-line
“\e[3~”: delete-char #delete
“\eOd”: backward-word #ctl-leftarrow
“\eOc”: forward-word #ctl-rightarrow
Of course the path /etc/inputrc is optional. You can name the file differently. You can place it at you HOME folder also, it is up to you.
You need to log out and log back in order the changes to take effect.