scp uses ssh for data transfer.Like ftp it also uses authentication before accessing the remote server.
Example:
Source file details:
Server : 192.150.120.106
Path : /home/sqlscripts/
File name: truncate.sql
Username: sam
Destination file details:
Server : 192.192.100.150
Path : /home/sqlscipts/
Username : john
If the file truncate.sql needs to be transfer to destination server(192.192.100.150
) from source the following command would do. Go to destination directory and enter the command as follows
scp sam@192.150.120.106:/home/
After pressing enter you will be prompted to enter your password. Enter the password and press enter the file would be in destination folder.
Find more info on this page http://unixhelp.ed.ac.uk/CGI/man-cgi?scp+1
No comments:
Post a Comment