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