Copy files with scp and sftp

Copy from locale to remote : (you must be on your local machine)

scp local-file-name username@remote-ip-machine:/remote-path-destination
scp libs.zip username@192.168.1.99:/home/docker/jenkins

Copy from remote to locale : (you must be on your local machine)  

install sftp : yum install -y openssh-server openssh-clients

sftp username@remote-ip-machine
sftp studio@192.168.1.99
cd /home/docker/jenkins
get libs.zip

Advertisements

One thought on “Copy files with scp and sftp

  1. Pingback: Copy files with scp and sftp | ginojava

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s