Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

How to transfer a file from local machine to Remote Server (Linux - SCP)

The scp command copies files to or from a remote Linux system. You will be prompted for your TCC password for authentication.

To copy files from the local system to a remote system:
scp file... user@host.domain:path
where:
file
File to be copied.
user
Your username on the remote system.
host.domain
The Internet address of the remote system, such as linux.nmt.edu.
path
The absolute path name to the destination on the remote system.

To copy files from a remote system to your local system:
scp user@host.domain:path ... dest
where dest is the path name on your local system where you want the files copied.

Examples:
scp ann beth clyde forsythe@linux.nmt.edu:/u/forsythe/tmp
scp 'forsythe@linux.nmt.edu:/u/forsythe/images/*.jpg' pictures/LaborDay


Source : http://infohost.nmt.edu/tcc/help/xfer/scp.html

How to install Certicate of another server on your linux server

Let say you want to install certificate of server A on server B. So that Server B can access Server A .
Here are the steps you need to do install it.

1. Export the certificate of server A























by exporting it you can save it to your local system say as servera.blah.com

2. Login to your server B as root and run this command

keytool -import -trustcacerts -file ~/servera.blah.com -keystore $JAVA_HOME/jre/lib/security/cacerts -alias proxy01


 There you go !!