scp command line copy to remote machine

scp command line copy to remote machine

scp -P 4589 /var/log/* root@ip-or-domain-name:/root/folder/

port 4589 is specified here, default ssh port is 22

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × two =

This site uses Akismet to reduce spam. Learn how your comment data is processed.