Secure copy of files with SSH (via scp)
?
S
Bashscp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. Source: http://www.hypexr.org/linux_scp_help.php
1# Simple example
2scp your_username@remotehost.edu:foobar.txt /some/local/directory
3
4# Kubernetes Configuration File
5scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@host01:/root/.kube/config ~/.kube/
6
7# Alternative
8sudo scp -i "xxx.pem" ubuntu@ec2-xxx.eu-west-2.compute.amazonaws.com:/home/ubuntu/dj-java/files/test.json /home/users/r2d2/desktopCreated on 7/30/2018