Howto use scp to copy or transfer file on Centos Redhat RHEL

Howto use scp to copy or transfer file on Centos Redhat RHEL

1. Copy one file from our sever to remote server (192.168.1.119)

[root@dhcppc51 ~]# scp ~/results root@192.168.1.119:/tmp
The authenticity of host ‘192.168.1.119 (192.168.1.119)’ can’t be established.
RSA key fingerprint is 02:9b:bc:7a:11:1d:e6:0f:61:39:cd:36:42:5a:72:50.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.1.119’ (RSA) to the list of known hosts.
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \r on an \m
###############################################################
# ITHELPBLOG.COM#
# Authorized access only! #
# Disconnect IMMEDIATELY if you are not an authorized user!!! #
# All actions Will be monitored and recorded #
###############################################################root@192.168.1.119’s password:
results 100% 34KB 34.0KB/s 00:00
[root@dhcppc51 ~]#

2.  Copy files from remote server (192.168.1.119) to our Local Server

[root@dhcppc51 ~]# scp root@192.168.1.119:/tmp/results /tmp
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \r on an \m
###############################################################
# ITHELPBLOG.COM#
# Authorized access only! #
# Disconnect IMMEDIATELY if you are not an authorized user!!! #
# All actions Will be monitored and recorded #
###############################################################
root@192.168.1.119’s password:
results 100% 34KB 34.0KB/s 00:00
[root@dhcppc51 ~]#
[root@dhcppc51 tmp]# ls -lah /tmp/results
-rwx——. 1 root root 35K Dec 15 23:29 results
[root@dhcppc51 tmp]#

That’s all. Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>