===== SCP cheatsheet ===== [[https://www.man7.org/linux/man-pages/man1/scp.1.html|man page]] ==== send file to server ==== (replace ''kat'' & ''780'' with user & server names corresponding to ''ssh_config'' send a friend's site button to eunoia friend buttons folder on 780: scp /home/kat/sitebutton.png kat@780:/var/www/eunoia/buttons/friends ==== retrieve file from server ==== (replace ''kat'' & ''9020'' with user & server names corresponding to ''ssh_config'' retrieve diff from spring root folder on 9020: scp kat@9020:/home/kat/spring/retrospring/2025-04-07_spring.diff . ==== chain SCP retrieval to pastes.sh upload ==== following the example above: scp kat@9020:/home/kat/spring/retrospring/2025-04-07_spring.diff . && rsync 2025-04-07_spring.diff pastes.sh:/