0% found this document useful (0 votes)
18 views

Moving Files in SCP Server

The document describes two methods for moving files between systems using SCP. Method 1 involves changing the shell to /bin/bash to avoid password prompts, but requires changing it back to prevent expert mode access. Method 2 adds the remote username to the /etc/scpusers file to allow copying files directly using the scp command and a single remote username and IP address.

Uploaded by

shaluprak
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Moving Files in SCP Server

The document describes two methods for moving files between systems using SCP. Method 1 involves changing the shell to /bin/bash to avoid password prompts, but requires changing it back to prevent expert mode access. Method 2 adds the remote username to the /etc/scpusers file to allow copying files directly using the scp command and a single remote username and IP address.

Uploaded by

shaluprak
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Check Point - Moving Files using SCP

Method 1 

Even though this maybe more of an article for the Linux area, the only reason I came across this is try
output of a upgrade_export from my SPLAT box, so hence it being under Firewalls - Check Point.

If you keep getting prompted with a password box when trying to connect edit the following file on yo
Box /etc/passwd 

Change the shell for your login account from /bin/cpshell to /bin/bash

Note !! Make sure to change this back after copying the files across otherwise users will be able to con
into expert mode.

Or you can try this method,

Method 2 

1. Add the username of the firewall you are moving the file to, to a file /etc/scpusers

       2.  then on the device you want to tranfer the file from run, 

scp <file to transfer> remoteuser@remoteip:<remote location>

So if you wanted to do all of this in one line, then try (check before doing this that there isnt already a

echo admin > /etc/scpusers && scp myfile.txt [email protected]:/tmp

This would create a scpusers file for the user admin, then tranfer the file myfile.txt to 1.1.1.1 to the fo

You might also like