Transfer files via SSH
I want to use file transfer via SSH on some scripts. I’ve read it’s possible to tar over ssh. Where should I start reading?
To do file transfer over ssh you can
- use scp
scp -r /srcdir/ user@remotehost:/destdir/
- use rsync over ssh (see the -e parameter)
rsync -e ssh -a /srcdir/ user@remotehost:/destdir/
- use some tool that transfers data via stdin/out (tar, cpio, etc)
cd /sourcedir; tar -c . | ssh username@remotehost bash 'cd /dstdir; tar -x
- Mount the filesystem via sshfs (if fuse is supported on your system)
Check more discussion of this question.
Related posts:
- Quickest way to transfer 55GB of images to new server
- how to transfer files from desktop to server when using ssh
- Transfer large files over the internet from a Linux VPS to Windows machine
- resuming transfer of files over ssh from remote linux to local windows
- Is it possible to use rsync over sftp (without an ssh shell)?
Leave a comment
Recent Posts
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





