Download files from remote server

Use ssh key

ShellScript
scp -i ~/path/to/your-key username@public-ip-address:~/path/to/your-project/log/production.log-20240126.gz ~/Downloads

Use password

ShellScript
scp username@public-ip-address:~/path/to/your-project/log/production.log-20240126.gz ~/Downloads
  • Enter your server password

Efficient log check command

ShellScript
grep -B 30 -A 30 --color "keywords you want to search" production.log-20240126
0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like