ssh rsync file transfer

This commit is contained in:
2026-06-27 13:03:02 +05:30
parent 0b542b22c6
commit 01109996b2

View File

@@ -1,3 +1,7 @@
# Finding files with a specific word
find /home/rakshit/work/DFS/dqclibs -name "*.c" | xargs grep -l "GTOnr3c" 2>/dev/null
`find /home/rakshit/work/DFS/dqclibs -name "*.c" | xargs grep -l "GTOnr3c" 2>/dev/null`
# Send file to ssh server
`rsync -avz -e "ssh -i ~/.ssh/aws-key.pem" myproject/ ubuntu@54.210.123.45:~/myproject/`