by Aromal Rajagopal | Nov 26, 2009 | Quick fixes, Technical |
Issue : How to change the default port for SSH? Solution : Open the port (which you want to use for SSH) in the server firewall and restart the firewall to apply the change. Then, open the configuration file /etc/ssh/sshd_config using your favorite editor and change :...
by Aromal Rajagopal | Nov 26, 2009 | Quick fixes, Technical |
Issue : How to transfer a file from one remote server to another remote server? Passwords for both the servers are available. Solution : You can use the ‘scp’ command to achieve this. Assuming that the file test.txt resides on server1 and needs to be...
by Aromal Rajagopal | Nov 24, 2009 | Quick fixes, Technical |
The following script can be used to restore multiple accounts from the backups. It is assumed that all the backup files are already present in the /home directory in the tar.gz format. #!/bin/bash ####################### for i in `ls | grep tar.gz | cut -d- -f2 | cut...
by Aromal Rajagopal | Nov 24, 2009 | Quick fixes, Technical |
Issue : How to view the details while doing a transfer via rsync? Solution : Use the additional options (as shown below) before the normal parameters: rsync –stats –progress -normal parameters here Else, you can use the parameter -v to view the summary at...
by Aromal Rajagopal | Nov 23, 2009 | Quick fixes, Technical |
Issue : How to remove the MX records from the DNS zone file for multiple domains on the server? Solution : Create a file, say removemx and put the list of domains in it. Now, run the following command : for i in `cat /var/named/removemx`; do sed -i ‘/MX/d’...