Tag Info

New answers tagged

0

I personnaly use WinSCP to make this. It's pretty easy to script or use graphically.


3

Unfortunately wildcards are quite limited. But it can be done with a couple extra commands. First, you can iterate through the files with a for: bash$ ls -1 hello.txt help.txt heroes.txt bash$ for f in *; do echo "$f"; done hello.txt help.txt heroes.txt You can also do an initial filtering using *.txt instead of just *. Make sure to quote the variable to ...


1

For interest we switched from aes to blowfish and went from 250kb/s to 2mb/sec our winscp script.txt # Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Connect using a password open sftp://user@pass@server -rawsettings Compression=1 AgentFwd=1 SshProt=1 ...


0

It can be done w/o much trouble. I simply create a list of files with the hostname next to each file and scp seems to parse it fine. ie. srchost=`hostname` myfiles="${srchost}:~/.bashrc ${srchost}:~/.bash_profile ${srchost}:~/.vimrc ${srchost}:~/.viminfo ${srchost}:~/.toprc ${srchost}:~/.dir_colors" scp -v $myfiles $HOME Scp seems to work fine with this ...


0

Nearly all have been already said but here is my last penny: I use ProxyCommand variant without nc nor soc. Based on OpenSSH Proxies and Jumphost Cookbook I crafted a following configuration: So we have following players: HOME_HOST: it is from where we copy a file to the target host HOP_HOST: we copy through this host (logged as HOP_USER) TARGET_HOST: it ...


1

If you're using something like SecureCRT (Windows) or iTerm2 (Mac), you can use Zmodem to transfer files back and forth without using scp/nc/etc. I use this to quickly move files back and forth without having to open a second session. The Unix server will need to have the lrzsz package installed -- some distros have this installed by default, some don't. ...


1

I don't know if this method is easier than just using scp, and I'm going to make many assumtions about what ssh client you're using and what OS your source and destination machines have. I just hope this is helpful. If you have already logged in to the machine, and want to transfer one file without having to log in again, you can open a tunnel like this: ...



Top 50 recent answers are included