Tested on:Raspberry Pi 2; Raspberry Pi B+; Raspbian pre Jessie; Raspbian Jessie
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
0

SCP copy from Linux to the Raspberry Pi and back

Directly programming the Raspberry Pi after setting it up headless provides ssh terminal access, but programming with raw editors like nano or vim is not everyones passion.
An alternative is using an editor of choice(mine is Sublime Text 3 with a hotkey for scp file transfer) on the host machine, transfer the files per scp and start the application from the ssh terminal.

In the hosts terminal,
either scp from the host to the Raspberry Pi:

or scp from the Raspberry Pi to the host:

After exchanging SSH keys, typing in the password is no more required.

Links
Nano Website: http://www.nano-editor.org
Sublime Text 3 configuration: http://www.knight-of-pi.org/basic-sublime-text-3-configuration
Sublime Text 3 scp transfer: http://www.knight-of-pi.org/using-a-host-computer-for-coding-on-the-raspberry-pi/
Remote access with SSH: http://www.knight-of-pi.org/remote-control-your-raspberry-pi/
SCP wiki: https://en.wikipedia.org/wiki/Secure_copy
SSH key exchange: http://www.knight-of-pi.org/password-free-login-exchange-ssh-keys
SSH key exchange: http://www.knight-of-pi.org/password-free-login-exchange-ssh-keys

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

Comment

Time limit is exhausted. Please reload CAPTCHA.