Created
May 15, 2015 21:01
-
-
Save vik-y/9cb5ea09ade80c04924d to your computer and use it in GitHub Desktop.
Transfer file using ssh from Koding VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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