How to automate an SSH client to ssh into vCenter Server?

I want to automate an SSH client to ssh into vCenter Server and run the required CLI commands in order to automate vCenter update, but I am lost as from where to start?