Skip to content

Instantly share code, notes, and snippets.

@vik-y
Created May 15, 2015 21:01
Show Gist options
  • Select an option

  • Save vik-y/9cb5ea09ade80c04924d to your computer and use it in GitHub Desktop.

Select an option

Save vik-y/9cb5ea09ade80c04924d to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment