Running a terminal session and running these commands is by design.The purpose of these commands:
1. If Spotlight uses OS monitoring the remote Linux Server and using SSH with “Use SSH Public / Private Keys” provided, then these commands won’t be used.
2. But if Spotlight uses OS monitoring the remote Linux Server and using SSH without “Use SSH Public / Private Keys” provided, then the commands will be used to initialize the connection from Spotlight client side to the remote Linux Server Shell in order to set the Linux Shell be ready to accept other commands from client to collect the information on this monitored Server which will display in Spotlight client.