The simplest example of an scp command is given below
Syntax
~~~~~
scp <filename> <username@ipaddress>:/<path for the destination>
eg:
scp ASR12500b119.bin root@172.26.64.146:/var/lib/tftpboot
In the next step you will have to supply the password of the destination machine and then you will get some thing like this if the transfer is complete.
[a@CHN-A11-144 tftpboot]$ scp ASR12500e079.bin root@172.26.64.144:/var/lib/tftpboot
The authenticity of host '172.26.64.144 (172.26.64.144)' can't be established.
RSA key fingerprint is 14:bb:29:4c:62:3d:d2:95:d6:e3:17:00:ee:25:72:e8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.26.64.144' (RSA) to the list of known hosts.
root@172.26.64.144's password:
ASR12500e079.bin 100% 30MB 29.9MB/s 00:00
Syntax
~~~~~
scp <filename> <username@ipaddress>:/<path for the destination>
eg:
scp ASR12500b119.bin root@172.26.64.146:/var/lib/tftpboot
In the next step you will have to supply the password of the destination machine and then you will get some thing like this if the transfer is complete.
[a@CHN-A11-144 tftpboot]$ scp ASR12500e079.bin root@172.26.64.144:/var/lib/tftpboot
The authenticity of host '172.26.64.144 (172.26.64.144)' can't be established.
RSA key fingerprint is 14:bb:29:4c:62:3d:d2:95:d6:e3:17:00:ee:25:72:e8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.26.64.144' (RSA) to the list of known hosts.
root@172.26.64.144's password:
ASR12500e079.bin 100% 30MB 29.9MB/s 00:00
No comments:
Post a Comment