Ubuntu – Copy from remote server to the laptop via ssh

centossshUbuntuunix

I am on centos server (via SSH) and I don't want to open file manager to copy dump file. What comand whould I use (scp or what) to copy that file from remote server directly to my comp.

like

cp ssh://user@server/app/dump.dat /home/

UPD

even more interested in how to copy file from my ssh session while I am on server back to my PC (of course I can logout or open new terminal tab or start up SSH server on PC)

Best Answer

scp your_username@remotehost.edu:foobar.txt /some/local/directory

This Reference may help.

Related Question