29.10.2016, 10:40
(06.01.2016, 07:52)admin Wrote: First you need to generate your private key and extract public key from that, create a script and run it once:Does this work on firmware 20160714?
Code:key = '/lib/genohm-scada/mnt/storage/id_rsa'
os.execute('dropbearkey -t rsa -f ' .. key)
keyinfo = io.readproc('dropbearkey -y -f ' .. key)
log(keyinfo)
In logs you will see a line like "ssh-rsa AAAAB3Nz...", you have to copy it to authorized_keys (or authorized_keys2) file on your HTPC.
I tried to run the script to generate a key but nothing is returned in the log...