Skip to content

Instantly share code, notes, and snippets.

@mattroz
Created October 21, 2016 06:44
Show Gist options
  • Save mattroz/59b73fab4d03be0de32d2b37175b77b3 to your computer and use it in GitHub Desktop.
Save mattroz/59b73fab4d03be0de32d2b37175b77b3 to your computer and use it in GitHub Desktop.
To copy a file from B to A while logged into B:
`scp /path/to/file username@a:/path/to/destination`
To copy a file from B to A while logged into A:
`scp username@b:/path/to/file /path/to/destination`
@mattroz
Copy link
Author

mattroz commented Aug 29, 2017

sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server - reconfigure SSH in case of "Connection reset by ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment