Page 1 of 1
ssh-keygen?
Posted: Wed Jan 30, 2008 7:40 pm
by trouserless
I would like to setup my meteohub in such a way that it can push awekas with ssh (authorized keys) to my webserver which is in a colo. I intentionally do not use ftp because of the inherent security risks.
Is there a way ssh-keygen could be included with the next version that way I could simply add a crontab to scp the awekas datafile at specified intervals?
Re:ssh-keygen?
Posted: Fri Feb 01, 2008 12:45 am
by admin
scp is already on the meteohub. so you can easily transfer a file to another ssh-enabled machine.
I don't know if dropbear (the installed ssh client) does support keys or has a keygen coming with it.
As an alternative one could install openssh that comes with a keygen. If you want to add packages have a look at
http://ipkgfind.nslu2-linux.org/. All at your own risk :-) I cannot be of much help when you install additional things on the Meteohub :-)
Re:ssh-keygen?
Posted: Sun Feb 03, 2008 2:03 am
by trouserless
I installed openssh with the force option (as it conflicted with dropbear's ssh and scp packages). It looks clean and seems to work well. I've generated a key and the password-less ssh works fine. I was looking in /data/graphs and could only find gnuplot definitions for the graphs. Is there a place I can go to grab actual .png files for upload? I guess I'm looking for something just like `setup server push' except with ssh and one-way keys. The plan is to generate graphs every N hours and have them scp'ed shortly thereafter.
Re:ssh-keygen?
Posted: Sun Feb 03, 2008 7:04 pm
by admin
data for upload is collected in \"/data/uploads/\". If ftp push is not enabled data will stay there. With enabled ftp the data will be removed there after being uploaded successfully.
I think you have to make your own crontab entry for scp and you should delete the files in the \"/data/uploads/\" folder after having transfered them.
Re:ssh-keygen?
Posted: Fri Feb 08, 2008 9:33 pm
by trouserless
The good news is that this works now. I've installed openssh, generated a keypair to securely copy /data/uploads/* to a remote webserver to be published. I simply added a crontab to copy that directory every hour. since the filenames of the graphs remain the same, they just overwrite both on the nslug and the webserver.