Skip to content

Instantly share code, notes, and snippets.

@pwittchen
Created September 4, 2019 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwittchen/08c8d23e863062cd1f10e9aa1f4ecff2 to your computer and use it in GitHub Desktop.
Save pwittchen/08c8d23e863062cd1f10e9aa1f4ecff2 to your computer and use it in GitHub Desktop.
# to remote host
cat localfile.conf | ssh user@hostname 'cat -> /tmp/remotefile.conf'
# from remote host
ssh user@hostname 'cat /tmp/remotefile.conf' > /tmp/localfile.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment