SCP in linux Rumi, July 27, 2011 In Unix, you can use the scp command to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network can't view them. Warning: Be careful when copying between hosts files that have the same names; you may accidently overwrite them. The syntax for the scp command is: scp [options] [[user@]host1:]filename1 … [[user@]host2:]filename2 For example, if user dvader is on a computer called empire.gov, and wants to copy a file called file1.txt to a directory called somedir in his account on a computer called deathstar.com, he would enter: scp file1.txt dvader@deathstar.com:somedir Likewise, if he wanted to copy the entire contents of the somedir directory on deathstar.com back to his empire.gov account, he would enter: scp -r dvader@deathstar.com:somedir somedir Similarly, if he is working on another computer, but wanted to copy a file called file1.txt from his home directory on empire.gov to a directory called somedir in his account on deathstar.com, he would enter: scp dvader@empire.gov:file1.txt dvader@deathstar.com:somedir When using wildcards (e.g., * and ? ) to copy multiple files from a remote system, be sure to enclose the filenames in quotes. This is because the Unix shell, not the scp command, expands unquoted wildcards. For more information about scp, consult its man page. At the Unix prompt, enter: man scp Related Administrations Configurations (Linux)
Perfect Backup MX using Postfix October 12, 2017 This is quite simple, and with a very simple setup, and does not require that much, since we do not need to send out e-mails from clients from this server, or use ASMTP. I find that MySQL is not needed here, but could be used. I will use normal flat… Read More
Procmail, Spamassasin and Postfix integration using Webmin November 27, 2008December 7, 2008 The updated post on the same topic available at – https://tweenpath.net/2008/11/a-well-formatted-configs-on-procmail-postfix-spamassassin/ It’s a tedious task- but will try to explain bit by bit… Step-1 Updating Webmin (if you’re running below 1.41 Step-2 add the following to the postifix main.cfg file mailbox_command = /usr/bin/procmail Step-3 Come back to Virtualmin > Features… Read More
Force stop xen vm using command line February 6, 2023July 8, 2023 Instructions Disable High Availability (HA) so you don’t run into issues. Log into the Xenserver host that is running your VM with issues via ssh or console via XenCenter. Run the following command to list VMs and their UUIDs xe vm-list resident-on=<uuid_of_host> First you can try just the normal shutdown… Read More