Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy file from ssh to local

scp username@remoteHost:/remote/dir/file.txt /local/dir/
Comment

ssh copy file from local to remote

scp -P 22 localfile.txt remoteuser@remoteserver:/remote/folder/
Comment

copy file from ssh server to local

scp host_name:file_server path_local
Comment

copy a file from local to ssh

# Syntax:
scp <source> <destination>

# To copy a file from B to A while logged into B:
scp /path/to/file username@a:/path/to/destination

# To copy a file from B to A while logged into A:
scp username@b:/path/to/file /path/to/destination
Comment

PREVIOUS NEXT
Code Example
Shell :: pytorch conda environment 
Shell :: apt-key export import 
Shell :: lines of code 
Shell :: creating copy of a branch 
Shell :: useful git commands 
Shell :: how to create a github tag 
Shell :: ssh use key file 
Shell :: link folder to github repo 
Shell :: conda install numba 
Shell :: ignore commited files 
Shell :: how to delete particular type file recursively in linux 
Shell :: hugo build 
Shell :: powershell list special built in accounts 
Shell :: cudnn version linux 
Shell :: shell set environment variable 
Shell :: new git 
Shell :: Forgot the password I entered during postgres installation 
Shell :: bash script to output a specific line of a file 
Shell :: blackeye linux 
Shell :: ssh agent remember passphrase 
Shell :: install rhythmbox 
Shell :: linux auto suspensd stop 
Shell :: install kibana 7.17 ubuntu 
Shell :: docker permission denied dial 
Shell :: loopback cli 
Shell :: how to install pip2 in kali linux 2021 
Shell :: git enable lfs 
Shell :: git checkout single file 
Shell :: windows edit file cmdf 
Shell :: linux Could not find a version that satisfies the requirement 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =