rajeshkumar created the topic: File Copying and Transfer between two machine
File Copying and Transfer between two machine or within machine.
Command 1: cp – Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
Command 2: ftp – ARPANET file transfer program (put / get
Command 3: rsh – Runs a command on another computer.
Rsh connects to the specified host, and executes the specified command. Rsh copies its standard input to the remote command, the standard output of the remote command to its standard output, and the standard error of the remote command to its standard error. This implementation of rsh will accept any port for the standard error stream. Interrupt, quit and terminate signals are propagated to the remote command; rsh normally terminates when the remote command does.
rsh otherhost cat remotefile >> localfile
Command 4: rlogin
Command 5: kerberos – introduction to the Kerberos system
The Kerberos system authenticates individual users in a network environment. After authenticating yourself to Kerberos, you can use network utilities such as rlogin, rcp, and rsh without having to present passwords to remote hosts and without having to bother with .rhosts files. Note that these utilities will work without passwords only if the remote machines you deal
with support the Kerberos system.
Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography.
Command 6: rcp
Rcp copies files between machines. Each file or directory argument is either a remote file name of the form “rname@rhost:path”, or a local file name (containing no `:’ characters, or a `/’ before any `:’s).
The command rcp copies files between computer systems. To be able to use the rcp command, both computers need a “.rhosts” file in the user’s home directory, which would contain the names of all the computers that are allowed to access this computer along with the user name. Here is an example of an .rhosts file:
zeus.univ.edu jdoe
athena.comp.com mjohnson
The ftp command can be used to copy files between computers if no .rhosts file is set up.
Examples:
rcp document1 zeus.univ.edu:document1
Copies “document1” from the local machine to the user’s home directory on the computer with URL zeus.univ.edu, assuming that the user names are the same on both systems.
rcp document1 jdoe@:zeus.univ.edu:document1
Copies “document1” from the local machine to the home directory of user “jdoe” on the computer with URL zeus.univ.edu.
rcp -r documents zeus.univ.edu:backups
Copies the directory “documents”, including all subdirectories, from the local machine to the directory “backups” in the user’s home directory on the computer with URL zeus.univ.edu, assuming that the user names are the same on both systems.
rcp -r zeus.univ.edu:backups/documents study
Copies the directory “documents”, including all subdirectories, from the remote machine to the directory “study” on the local machine.
Command 6: scp – secure copy (remote file copy program)
Command 7: cpio – Creates and un-creates archived cpio files. And also is capable of copying files to things other than a hard disk.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
rajeshkumar replied the topic: Re: File Copying and Transfer between two machine
Some Quick Notes for this…
Remote machine Login : telnet, rlogin
File Transfer: ftp, rcp, scp
Remote login without Password: rsh
Secure Login with password: ssh
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
- Implementing Managed IT Services: A Step-by-Step Guide - August 30, 2024
- DevOps Foundation Certification - August 29, 2024
- SRE Foundation Certification - August 29, 2024