scp

Linux certificates trasformation
To send the certs from 1st machine to 2nd machine do the below.
pwd
/apps/apache/certs

The above path is the location of certificates on the 1st server (inddlvtwlmas01.srisohan.net).

scp -rp <Key file> sv-wl10@inddlvtwlmas02.srisohan.net:/apps/apache/certs/

scp -rp <Crt file> sv-wl10@inddlvtwlmas02.srisohan.net:/apps/apache/certs/

To copy any file from 01 server (/home/sv-wl10/script.sh) to 2nd server home path (/home/sv-wl10)

pwd

/home/sv-wl10

scp script.sh sv-wl10@inddlvtwlmas02.srisohan.net:/home/sv-wl10/


After executing the above scp command if it asks for a password , you have to enter the password.


Which password to enter ? the service account password which we mentioned before the second server (sv-wl10).


=================================


When we logged in 2nd server and we need to copy a file from the 1st server to 2nd  server, do the following

[sv-wl10@inddlvtwlmas02 sv-wl10]$ pwd

scp sv-wl10@inddlvtwlmas01.srisohan.net:/home/sv-wl10/version.txt .

in above case we have to put (.) because we are already in our home path and we need to copy that file from from server to our home path in 2nd server.

Comments

Popular posts from this blog

Bsu

linux

Domain