ssh-keygen?

Requests for future functionality

Moderator: Mattk

Post Reply
trouserless
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jan 09, 2008 4:36 pm

ssh-keygen?

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re:ssh-keygen?

Post 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 :-)
trouserless
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jan 09, 2008 4:36 pm

Re:ssh-keygen?

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re:ssh-keygen?

Post 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.
trouserless
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jan 09, 2008 4:36 pm

Re:ssh-keygen?

Post 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.
Post Reply