To clarify, you do not need to be connected to the application through SSH. Just be in the folder where you want the files to be downloaded.
scp -P 22 username@hostname:public_html/filename.txt .
The space with the dot is needed at the end. In the terminal, the dot represents the current folder that you are in.
Have any questions or comments? Write them below!