SSH File Transfer Protocol or Secure File Transfer Protocol (SFTP) SFTP is a network protocol that allows for file access, transfer and management capabilities over the SSH (Secure Shell) protocol channel. The advantages for SFTP include: Designed to be used to implement a secure remote file system service and also a secure file transfer service.
This question already has an answer here:
- Copy a file back to local system with ssh 9 answers
I'm using Linux (centos) machine, I already connected to the other system using ssh
. Now my question is how can I copy files from one system to another system?
Suppose, in my environment, I have two system like System A
and System B
. I'm using System A
machine and some other using System B
machine.
How can I copy a file from System B
to System A
?And, copy a file from System A
to System B
?
marked as duplicate by Gilles, slm♦, jasonwryan, Anthon, BernhardDec 25 '13 at 7:43
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
4 Answers
Syntax:
To copy a file from B
to A
while logged into B
:
To copy a file from B
to A
while logged into A
:
Ssh Secure File Transfer Download
DopeGhotiDopeGhotiIn case if you need an alternate approach.
Install sshfs. if you use ubuntu/debian:
or, if you use centos/rhel:
Create an empty dir
'link' or 'mount' the two directories
'unlink' the dirs
For more see here, linuxjournal.com
Ssh Secure File Transfer Client Windows
Ruban SavvyRuban SavvySsh Secure File Transfer Client For Mac
If you want to keep the files on both systems in sync then have a look at the rsync
program: