bigphil
Patron
- Joined
- Jan 30, 2014
- Messages
- 486
Hey guys/gals...I've been searching for the last day on google and here, but cannot find the answer to my question (if you find it quickly, congrats and post the link...you're a better "searcher" than I am ;-)
What I am trying to do is create a script that will login as root (or another privileged account that can create snapshots) from a Windows box. I have been trying to get putty to work, but each time it just says "access denied." The putty event log ends with these two lines: "sent password", and then "password authentication failed" immediately after that.
Here are my settings >
putty for windows version: 0.63
command I'm running: putty.exe nas1 -l root -pw myPassword
I've also tried: putty.exe -ssh -load mySession -pw myPassword
FreeNAS settings: SSH service enabled, login as root with password is enabled, allow password authentication is enabled, the root user account is enabled for password login.
No matter what, each time a run any of the commands, the login prompt comes up and says:
Using username "root".
Access denied
root@nas1's password:
If I then enter the password it lets me right in...its just not taking it from the script and I'm sure its something easy but I'm having a helluva time figuring it out. I don't care about using SSH keys at this point as I know they are more secure, I just want the darn thing to work so I may continue my project!
What I am trying to do is create a script that will login as root (or another privileged account that can create snapshots) from a Windows box. I have been trying to get putty to work, but each time it just says "access denied." The putty event log ends with these two lines: "sent password", and then "password authentication failed" immediately after that.
Here are my settings >
putty for windows version: 0.63
command I'm running: putty.exe nas1 -l root -pw myPassword
I've also tried: putty.exe -ssh -load mySession -pw myPassword
FreeNAS settings: SSH service enabled, login as root with password is enabled, allow password authentication is enabled, the root user account is enabled for password login.
No matter what, each time a run any of the commands, the login prompt comes up and says:
Using username "root".
Access denied
root@nas1's password:
If I then enter the password it lets me right in...its just not taking it from the script and I'm sure its something easy but I'm having a helluva time figuring it out. I don't care about using SSH keys at this point as I know they are more secure, I just want the darn thing to work so I may continue my project!