Home tmade.de

Home Wiki

SCP

Secure copy of files via ssh:

scp suse10.site:/etc/HOSTNAME ~                                    #Logged in user copies  the file /etc/HOSTNAME to the home folder (~)
scp id_rsa.pub username@10.6.7.203:                                #Copy "id_rsa.pub" nach "/home/tmade@10.6.7.203"
scp install_NW70.tar root@10.6.63.31:/sapdb                        #Copy install_NW70.tar as root to 10.6.63.31 into folder /sapdb
scp * root@10.6.63.31:/mnt/temp                                    #Copy * (all in working directory) as root to 10.6.63.31 into folder /mnt/temp
scp root@10.6.63.31:/etc/ssh/ssh_host_key.pub da20.key             #Copy file "/etc/ssh/ssh_host_key.pub" from remote machine to local file "da20.key"
scp -r /folder/* testuser@10.6.7.203:                              #Copy folder recursive to home of user "testuser" on 10.6.7.203
linux/scp.txt · Last modified: 2017/12/09 01:19 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki