Software >> SSH >> Client >> Putty >> How to use plink to connect to remote SSH server and execute a shell script or a command at the server

To run a script 

E.g. using public key authentication

plink -i path-to-local-privatekey-ppk-file user@ssh-server /path-to-script/some-script.sh

To run a command

e.g.

plink -i path-to-local-privatekey-ppk-file user@ssh-server "ls -la"