


Here ls.txt is the file to be pushed on the server To push file on the Desktop]# cd /]# lsīin dev lib ls.txt lv3 mnt outfile sbin sda8 sys varīoot etc lib64 lv1 media net proc sda3 SELinux tmpĬgroup home lost+found lv2 misc opt root sda7 srv /]# scp -r ls.txt 192.168.1.40:/ is the destination location where you have to copy the file. :/ is a location from which you have to pull the file Here 192.168.1.40 is a source IP (server IP) Then check if the server is Desktop]# ping 192.168.1.40 -c 3 To check sshd is installed and Desktop]# which Desktop]# service sshd status Scp is installed if not you can check the related package with this second command and install using rpm. Let’s check if SCP binary file is installed or Desktop]# which Desktop]# rpm -qf /usr/bin/scp Sshd should be running in the background. Your SCP, FTP, sFTP do not work if sshd is down. The SCP command uses SSH to transfer data, so it requires a password or passphrase for authentication.įollowing are the tools used for remote file transfer - SCP, FTP, SFTP. In Linux and Unix, you can use SCP (the SCP command) to securely copy files and directories between remote hosts without starting an FTP session or logging into the remote systems explicitly.
