Skip to content

SSH Quick Snippets

vijayvepa edited this page Mar 7, 2019 · 1 revision

SSH

Copy file back to local

  • Regular SSH
ssh user@hostname 'cat /tmp/remotefile.conf' > /tmp/localfile.conf

Reference: https://unix.stackexchange.com/a/177837/164172

  • CF SSH
cf ssh <appname> -c 'cat /tmp/remotefile.conf' > /tmp/localfile.conf
Clone this wiki locally