How can I login to a remote server and execute a set of commands then when done logout and continue my script?

Thanks.

Edit
Report