Hi
I want to run a script on dhcp server script on dhcp lease event. currently it runs a /tools dns update. but I want to change that to a ssh-exec.
I have created an account dyndns uploaded some rsa keys - allocated the public key to a userid on the destination linux box - dnydns
when I was testing - I logged into my router box as alex and attempted to ssh-exec as dst-ip and remote user => dyndns
But it wouldn’t use the private key I had allocated to dyndns. I had to log into the ros box as dyndns and then run ssh-exec for it to pick up the private key and log me.
If this is the case that the key is based upon who is logged in.
Then what key or which user should I allocate the key to if I want the script triggered by dhcp server lease event when it wants to ssh-exec
also on private keys there are users and key-owner whats the difference
EDIT
Its 2 years old maybe there has been an update …