Tag: ssh file copy
copy files via ssh
by admin on Jun.18, 2009, under linux
To send a file;
- ssh cat uzaktaki_makina <yerel_dosya-"> "remote_file
- yerel_dosya cat | ssh uzaktaki_makina cat ">" remote_file
To receive a file;
- ssh uzaktaki_makina "cat / home / file.tar.gz"> file.tar.gz
- uzaktaki_makina ssh cat "<" remote_file> yerel_dosya
To compare the files;
# The remote machine using the processor to:
- ssh cat uzaktaki_makina remote_file | diff - yerel_dosya
# Local machine using the processor to:
- ssh cat uzaktaki_makina <yerel_dosya "|" diff - remote_file
rcp, scp command can show the progress of the enhanced version of the copy operation;
# Sh files in the folder where the remote machine to copy your home directory:
- scp *. sh uzaktaki_makina:
# Pdf files to a remote machine to a different folder to copy:
- scp *. pdf uzaktaki_makina: / home / cemd / subfolder
# Sh files to the remote machine to get the local machine:
- uzaktaki_makina scp: *. sh.
# Scp, sftp, ssh and sshd from the same pack. WinSCP is available in the Windows-based machines.
[Gürhan'a thanks]
