Today I learn about how to do secure copy from one linux machine to another linux machine.
To copy files from one linux machine to another linux machine, one has to know login name and password for destination linux machine.
simple use: of scp command.
$ scp localfile username@destination_name or_IP:/dir/
it will prompt for password. provide the password and you file is copied.
Below is compete demo..
$ scp ~bhagwat/.htpasswd root@192.168.2.143:/home/bhagwat/firmware/sedna/apps/NAS-2/filesystem/image_sedna/applications/nas/webserver/cgi-bin/login/
root@192.168.2.143's password:
.htpasswd 100% 20 0.0KB/s 00:00
To copy files from one linux machine to another linux machine, one has to know login name and password for destination linux machine.
simple use: of scp command.
$ scp localfile username@destination_name or_IP:/dir/
it will prompt for password. provide the password and you file is copied.
Below is compete demo..
$ scp ~bhagwat/.htpasswd root@192.168.2.143:/home/bhagwat/firmware/sedna/apps/NAS-2/filesystem/image_sedna/applications/nas/webserver/cgi-bin/login/
root@192.168.2.143's password:
.htpasswd 100% 20 0.0KB/s 00:00
Comments