-
How to change the default SSH port in Lion
So you don’t want to have your remote login port (ssh port) on your Lion server setup to port 22. You can easily change the listening port doing the following 2 steps. There is no need to add another service.
First you will need to edit your Lion Services file:sudo nano /etc/services -
Open Directory Users on Lion Cannot Change Passwords
We recently ran into an issue with Open Directory Users on Apple’s OSX Lion. Users were not able to change their passwords using the web interface on a fresh install of Lion with Open Directory. The error we were receiving is below:
Read the rest of this entry » -
FTP script to automate file transfers to remote server
Below you will find a FTP script that will allow you to automate your files transfers without requiring any user input. The only problem with this method is you will be putting a username and password into the script file, but having a simple automated FTP file upload or FTP file download probably outweighs the drawback.
So to describe what this script does:
First the script will tar and zip all files and folders in the /var/log/ folder to the home directory of the user who runs the script. This will create a dated zip file in the user’s home folder who ran the script. Then it will FTP the files to the remote host. You can then add the script to a cron job to execute it everyday, week, hour, etc.
Read the rest of this entry » -
Apache redirect for wildcard domains
We recently had to redirect a wildcard domain to another wildcard domain using Apache redirects. It is assumed you have already enabled mod_rewrite, if not make sure you enable that apache module before you try adding this rule.
Read the rest of this entry » -
WinSCP program for Mac
WinSCP is a great program for Windows that will give you a GUI interface to manage files on a remote server when all you can use to connect is SSH. Having grown fond of this program a colleague was sad to find there was no version for MAC. After playing with several different options, they ended up settling on using the FireFTP extension for Firefox and connecting via SFTP to the remote server. To setup FireFTP to use SFTP on the MAC you need to do a few things first.
Read the rest of this entry »