Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

scp download file

scp remote_username@remote_addr:/remote/path/file.txt .
Comment

scp download

# download: remote -> local
scp user@remote_host:remote_file local_file 

# upload: local -> remote
scp local_file user@remote_host:remote_file

# upload: with key
scp -i key.pem local_file user@remote_host:remote_file

# upload: specify port
scp -P 2222 local_file user@remote_host:remote_file
Comment

scp file download

scp osxdaily@192.168.0.4:filename.zip ~/Desktop/
Comment

scp file

scp [source file] [destination]
scp file.txt user@ip:/Desktop/

For directories, add the -r tag
scp -r [source dir] [destination]
scp -r dir/ user@ip:/Desktop/
Comment

PREVIOUS NEXT
Code Example
Shell :: ffmpeg add audio to image 
Shell :: uninstalling docker-compose 
Shell :: Docker - Container is not running 
Shell :: docker run command on container 
Shell :: docker for ubuntu 
Shell :: How to get current git id 
Shell :: terraform remove from state 
Shell :: godaddy ssl integration to the ubuntu apache 
Shell :: install docker ubuntu 20 
Shell :: fastlane match update certificate 
Shell :: git clone single branch 
Shell :: installing appimage file ubuntu 
Shell :: git add 
Shell :: create cron job from command line 
Shell :: linux chmod permissions 
Shell :: vieuw the MOTD linux 
Shell :: ubuntu install latest vim 
Shell :: how to run git bash from powershell 
Shell :: open directory windows command 
Shell :: How to update newer git version on ubuntu 18.04 by using command line terminal. 
Shell :: update ruby version ubuntu 
Shell :: github to colab 
Shell :: git force push after reset 
Shell :: what is a nuget package 
Shell :: hobo list services 
Shell :: upgrade powershell 
Shell :: step10 pgadmin ubuntu 20.04 
Shell :: proxy shell 
Shell :: curl get url https 
Shell :: how to delete image docker 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =