I want to write a shell script to run on a Mac OS system that will do something along the lines of the following:
- SSH into a Linux server (using key authentication)
- Perform a command on the server via SSH
I would assume it'd be something like this:
ssh user@ip --[some kind of key auth flag here]
command --whatever-flags-here
Unfortunately, I don't have a Mac nor do I have any experience using them at all so I'm hoping you guys can help me out with this one.