It appears that on each reboot the SSH key changes on each reboot.
I have installed git app and configured few repos to be used vis SSH just to find that after EX2 reboots (about every night) I cannot SSH to it because the fingerprint changed! This is makes git and ssh on this NAS useless!
Anyone knows way around it?
Is there a way to easily configure http(s) access to a share?
Two solutions - one for your immediate SSH key’s persistency needs and another to automate everything.
First, backup the key, in fact better yet, backup the whole home directory of the user where the SSH key is located in a persistent location like /usr/local/config - that way after every reboot you can manually bring that directory back. Be sure yo use copy command’s -p switch to preserve everything, esp. permissions.
Second, you can automate all this copying after reboot by custom-compiling your own firmware from WD’s source code that they put on their Downloads section. The only change you would need to make would be to add a line very near the end of the script, /usr/local/modules/script/system_init - that’s what is used to do startup tasks. That line should basically copy back this home directory, again preserving permissions, from the persistent backup location to the the original location. This SSH key preservation and copy-automation trick has been working fine for me for the last 5 months and has been an just what I needed to allow a friend of mine sftp keyless into my box without her using the root credentials but her own credentials (SFTP functionality will require some other changes and is very tricky but the SSH key copying is a much simpler one and so I mentioned it here). Everything is automated after a reboot - so I never have to do it myself.
Be aware, of course, that by compiling and loading your own firmware, you are likely voiding your warranty…and I only recommend you do this if you are very comfy with Linux/Unix and know what you are doing.
As for your final question - of http(s) access to shares - well there is the built-in Web File Viewer app available from the dashboard…but it is slightly broken. Though it works fine for the admin user, currently other users cannot use it properly…that is a bug that has been reported to WD but no word on when it will be fixed. The one workaround is that if an admin user logs in first and then logs out and then a non-admin user logs in from the same browser session, it works for the non-admin user. But it is not a practical workaround because an admin user cannot share their login credentials with a non-admin user.
If this helps you, please click the star on the left under my username to give me a kudo.
Thanks for your answer but it is not solution for me. I was waiting to see if someone has better one or WD representative would tell us that it’ll be fixed in the next firmware version!
I really don’t have time to build my own firmware ones not to mention that I will have to do this every time WD release new firmware.
You see, when I purchase a product, I expect it to work as advertised and this one is NOT! I’m finding more and more bugs into this product and and based on that I am not sure I would buy anything but plain hard drive from WD ever again.
I’ll tell you what. If your solution is so good why WD doesn’t implement it?
As for http(s) access. I managed to get it working. For anyone that is interested what I did is enabled WebDav, rebooted few times and now I can access shares via http(s). But it appears that there is another bug, only admin account was able to git push via http(s).
I’ll tell you what. If your solution is so good why WD doesn’t implement it?
I’ll tell you what, if you are such a [Deleted], why can’t you figure out a solution yourself? Good luck finding help from anybody with this kind of attitude, you ingrate.
I’ll tell you what, if you are such a [Deleted], why can’t you figure out a solution yourself? Good luck finding help from anybody with this kind of attitude, you ingrate.
What is wrong with you?!?!? Do you only care about kudos or providing solution that really works for the person?
You want me to accept your solution even though I have no intention of implementing it? Not to mention the potential of voiding the warranty!
Please note that I am very busy. I don’t spent my time checking this forum…
You are so busy yet you come here looking for answers to issues you can’t solve on your own. And when someone offers solutions volunteering their time and knowledge, you lack the basic courtesy to express thanks. Well, as I said, good luck with that attitude…it’ll get you very far in your search for a solution.
Cybernut1 wrote:
You are so busy yet you come here looking for answers to issues you can’t solve on your own. And when someone offers solutions volunteering their time and knowledge, you lack the basic courtesy to express thanks. Well, as I said, good luck with that attitude…it’ll get you very far in your search for a solution.
Can you acctually read? My second post starts with " Thanks for your answer…"