while bash ssh run remote command code example Example: bash how to run remote command $ ssh USER@HOST 'COMMAND1; COMMAND2; COMMAND3'