SFTP commands on Check Point Firewall


SFTP File Transfer commands on Check Point Firewalls
[Expert@ HostName:0]# sftp username@sftp_server_address
For example: Logging to below SFTP server from my Firewall[HostName] in Expert mode.
SFTP server: 192.168.15.6
username: aruncp
password: ******
[Expert@ HostName:0]# sftp aruncp@192.168.15.6
Connecting to 192.168.15.6...
aruncp@192.168.15.6's password:******
sftp>
sftp> ls
Download            Upload              examples.desktop
1. To UPLOAD a file: -
command syntax: put local-path [remote-path]
local-path: Path on Firewall
remote-path: Path on SFTP server
For example, to upload 'messages' file from local machine(Firewall) to your SFTP server,
sftp> put /var/log/messages /Download
Uploading /var/log/messages to /Download/messages
sftp> cd Download
sftp> ls
messages
2. To DOWNLOAD a file: -
command syntax: get remote-path [local-path]
remote-path: Path on SFTP server
local-path: Path on Firewall
For example, to download a 'messages' file from SFTP server to /home directory of the firewall,
sftp> get /Download/messages /home
Fetching /Download/messages to /home/messages
3. Below are few other available SFTP commands :
cd path                                                 Change remote directory to 'path'
lcd path                                                Change local directory to 'path'
chgrp grp path                                   Change group of file 'path' to 'grp'
chmod mode path                           Change permissions of file 'path' to 'mode'
chown own path                              Change owner of file 'path' to 'own'
help                                                       Display this help text
get remote-path [local-path]      Download file
lls [ls-options [path]]                      Display local directory listing
ln oldpath newpath                        Symlink remote file
lmkdir path                                         Create local directory
lpwd                                                      Print local working directory
ls [path]                                               Display remote directory listing
lumask umask                  Set local umask to 'umask'
mkdir path                                          Create remote directory
progress                                              Toggle display of progress meter
put local-path [remote-path]     Upload file
pwd                                                       Display remote working directory
exit                                                        Quit sftp
quit                                                        Quit sftp
rename oldpath newpath            Rename remote file
rmdir path                                           Remove remote directory
rm path                                                Delete remote file
symlink oldpath newpath             Symlink remote file
version                                                 Show SFTP version
!command                                          Execute 'command' in local shell
!                                              Escape to local shell
?                                              Synonym for help

Comments

Popular posts from this blog

Download IOS Image for Router

tcpdumps in Checkpoint Firewall