I recently had the need to reset my Endian Firewall Admin ‘admin’ password via SSH/Console. I believe the reasoning for this was due to the following bug:
In case the bug does not apply to you, or you’re just too lazy to visit, here’s what you need to do.
1. Login via SSH or Locally at the console.
2. Type the following:
htpasswd -m /var/efw/auth/users admin
3. At the Password prompt, type in your new password, retype your password and you’re done!
4. Login to the Endian Firewall Web Administration with your new password
Why does this happen?
Well the short of it (from the bug report) is that resetting the password with a password that contains the ‘$’ symbol or ‘%’ symbol, via the Web Administration interface, well it breaks 🙁 There is a solution to the problem on the page at the link above if you’re into hacking files and things 😉 It’s actually quite simple.
Ever wanted to copy files from one linux server to another, via SSH? Here’s the command:
scp -P 22 -r /home/username/local-directory ip-or-hostname-of-remote-server:/home/username/remote-directory.
scp = Secure Copy.
-r = Recursive (copy the contents of the directory and the contents of any directories inside that directory).
-P = (specifying the port number).
22 = The port number SSH is running on, on the remote server. (That’s right, some of us who are little security conscious, don’t leave SSH running on port 22).
/home/username/local-directory = The local directory on the ‘source’ server, containing the files you want to copy to the remote servers
/home/username/remote-directory = The directory on the ‘destination’ server, where you want to copy the files to.
ip-or-hostname-of-remote-server = The example says it all. Replace this section with the remote IP Address or Hostname of the destination server.
Easy enough? If not, or you would like further examples or assistance, please feel free to ask you questions in the comments.