Index:Beginner Articles/he
| This page needs attention. Please make proper updates and then remove this template. Reason: This page isn't a translation and this isn't in the Beginner Articles. |
== Transfering your files with SCP ==
For transfering your local files to a remote server running SSH, you must do the following:
$ scp <local_file> foobar@someserver.com:
The above command would transfer <local_file> to the home directory of foobar.
Another example:
$ scp <local_file1> <local_file2> foobar@someserver.com:/tmp
The above command would upload local_file1 and local_file2 to the /tmp diretory of someserver.com.
The SSH daemon in the yunix server listen on port 666, so if you want to upload something to this server you'll need to specify the port number where the sshd is running (the default port is 22), this could be achieved as follow:
$ scp -P 666 <local_file> foobar@yunix.net:
Connect to port 666 and transfer <local_file> to the home directory of foobar.
[edit] Help If you have trouble with SCP try to comment (by inserting # at the beginning of line) the lines containing 'echo' at the beginning of your .bashrc file or use the Windows-based WinSCP.