Sample Project - With SSH Actions - Execute Condition

Can you give me a sample project, which should have set of SSH Actions. Where Each action should be performed on success of the previous actions.

Some conditions should be checked before executing the particular SSH Action, that condition should validate the result of the previous SSH Action.