To copy a single file over without using scp
- cat file | ssh root@host 'cat > file'
- ssh root@host 'cat > file' < file
- cat to_be_remote_executed | ssh -i private-key-file root@host | cat > result
- tar -cvf - . | ssh root@host 'cd whereever; tar -xvf - '
No comments:
Post a Comment
Have your say!