... setting up 'keys' for ssh instead of passwords is one thing.My question is how can I safeguard my machine from these attacks and how do I view the log showing who last logged in.
My question is how can I safeguard my machine from these attacks
and how do I view the log showing who last logged in. I've been able to shell into the var/log folder and when I 'ls' I see all the options but I have no idea which one is what I'm looking for.
Also, I can't view the security log, I keep getting the message 'security: permission denied'. I can't sudo into it either, so any ideas? Thanks for any help.
I don't understand the advice to move ssh to a different port, port scanners make this effort essentially a waste of time.
Have you set a password for the user 'root' in the GUI?
EDIT: Try adding the user to the group 'wheel'
You're welcome. How did you add the user to the group wheel? Using the GUI or the command line? In FreeNAS you need to do it from the GUI.Tried adding user to group 'wheel' and no luck, returns the same. 'root' has a password as well. Any other ideas? thanks for the help thus far!
You're welcome. How did you add the user to the group wheel? Using the GUI or the command line? In FreeNAS you need to do it from the GUI.
If that doesn't work, I'm stumped for the moment. I actually ran into the same problem setting up a Jail and there I could do it from the command line, but that's all I needed to do and it worked.
After reading this thread i wanted to try out public/private key authentication. I use putty to connect with ssh to my nas.
I have read this nice how-to and made me some keys.
Now im trying to setup putty to connect with my freenas using my pub key. But when reading about it, it seems that i need to generate keys from puttygen and import to my freenas??
anyhow now confusion is at peak level, is there a nice howto somewhere?
EDIT:
Solved it:
1. In windows, generated keypair with puttygen.
2. In freenas, added public key string to authorized_keys in my .ssh folder.
3. In putty brows Configuration -> Connection -> SSH -> Auth. And under "Authentication parameters" pointed to my private key i made in puttygen.
Now it connects without password :)
Hope it helps some...
Any intermediate steps? I'm trying to do the same but my keys aren't working. The private key goes to FreeNAS in the SSH settings right? I'm afraid I may have messed up the syntax for authorized_keys or something. Also did you need to paste your public key in the appropriate field for the specific user on freeNAS? Any help? Thanks!