Setup password-less SSH on Your Rigs
This is useful if you have multiple rigs and getting tired of putting ssh password every time logging into your rigs.
Also good if you want to run commands from ssh but not start ssh session, for example just want to know miner command on rig 2 or if watchdog is running on rig 3 ...
To make sure outsiders dont have access to all your rigs dont open the rig ssh port you want to enable ssh password-less login from on your router. Any one who has access to this rig has access to all your rigs via ssh.
What I do is I forwarded a random port to ssh port of Rig 2 on router, remote ssh to rig 2, then ssh from rig 2 to rig 1 with password and do all stuff from rig 1 to all my rigs without password.
Run this on rig 1:
ssh-keygen
You can leave all options empty on prompts.
Then to enable passwordless on your rig 2 with internal ip 192.168.1.102 run:
ssh-copy-id m1@192.168.1.102
It will ask for m1 password default is "miner1", same process for all other rigs
Now ssh to your rig 2
ssh m1@192.168.1.102
It should login without asking for password.
Now you can run any commands on rig 2 from rig 1 with this command :
ssh m1@192.168.1.102 command
Example, get nvOC report on rig 2 :
ssh m1@192.168.1.102 ./nvOC report
Or to restart miner on rig 3:
ssh m1@192.168.1.103 miner-restart
Thanks, Pap. I have been meaning to get around to this. It was very helpful and worked perfectly.