I want to create PhpStorm action that will run local SSH command. Is that possible?
I want to bind it to some hotkey inside PhpStorm not to type my command every time in terminal.
Yes -- you can create SSH External Tools entry that will execute your command over SSH connection. Once crated you can assign custom shortcut to such tool in Settings/Preferences | Keymap
.
Keep in mind that such command will be run in separate SSH connection and not in your current terminal.
Few links to read more (general concept / exact steps):