Wednesday, November 27, 2013
Secure Copy (scp) pada Linux
Berikut ini beberapa cara copy file dengan menggunakan secure copy (scp)
Copy file "test.txt" dari remote komputer lain ke local komputer :
$ scp your_username@remotehost_ip:homeserver/kusdi/test.txt /home/kusdi/directory
Copy file "test.txt" dari local komputer ke remote komputer lain :
$ scp /home/kusdi/directory/test.txt your_username@remotehost_ip:/some/remote/directory
Copy file "test.txt" dari remote host "server1" ke remote host "server2" :
$ scp your_username@server1:/some/remote/directory/test.txt \
your_username@server2:/some/remote/directory/
Copying file "foo.txt" and "bar.txt" dari local host home directory dari remote host :
$ scp foo.txt bar.txt your_username@remotehost_ip:~
Copy file "test.txt" dari local host ke remote host dengan menggunakan port 2264 :
$ scp -P 2264 test.txt your_username@remotehost_ip:/some/remote/directory
Subscribe to:
Post Comments (Atom)
About Me
|
No comments:
Post a Comment