I have successfully setup Gnome terminal to change profile when i connect with ssh on the production server and development server.
For that, i used xdotool and modified