SSH copy files / dir

Aus Laemmi´s Wiki
Zur Navigation springen Zur Suche springen


Copy files from remote to local

ssh user@host 'cat /path/to/file' > ~/Downloads/file
scp user@host:/path/to/dir ~/Downloads/dir

Copy dirs form remote to local

scp -r ~/Downloads/dir/ user@host:/path/to/dir/