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