Transfer file using ssh from Koding VM
After you are done configuring SSH:
To log in:
First you have to make sure that your ssh-agent uses your public key. For that run
eval "$(ssh-agent -s)" in the terminal from which you want to SSH
After doing that
To get ssh access:
ssh username@kodingurl
To copy files from/to server:
scp /tmp/file user@example.com:/home/name/dir
(where /tmp/file can be replaced with any local file and /home/name/dir with any remote directory)
To copy from the remote computer to the local one, type, in the local computer:
scp user@example.com:/home/name/dir/file /tmp