Linux- passwordless ssh from system (root) script
- by redmoskito
What's the easiest way to have a system script (running as root) execute remote commands over ssh?
I've written some scripts that execute commands remotely via ssh, and they work great when I run them as myself, as I've set up ssh-agent and keys for passwordless login. I'd like to call these when my laptop docks and undocks. I've been successful…