Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy file from ssh to local

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

copy file from ssh server to local

scp host_name:file_server path_local
Comment

copy file from ssh to local windows

pscp.exe username@remoteHost:/remote/dir/file.txt d:
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 :: how to undo a bunch of commit sent that was pushed 
Shell :: copying folders in git bash 
Shell :: find index of string in shell 
Shell :: git revert to last commit on remote branch 
Shell :: adding ssh key to gitlab 
Shell :: deno install windows 
Shell :: git untract file 
Shell :: instalar webmin ubuntu 20.04 
Shell :: What commands would you use to force an overwrite of your local files with the master branch? 
Shell :: command to create jpeg in linux 
Shell :: docker stop swarm 
Shell :: github push first time 
Shell :: ffmpeg denoise audio 
Shell :: bash read command examples 
Shell :: create private repository github command line 
Shell :: how to setup a gitignore 
Shell :: install chocolately path 
Shell :: bash multiline string variable 
Shell :: mac shell echo command 
Shell :: ubuntu enable network manager 
Shell :: git 3 way merge 
Shell :: bash do-while 
Shell :: git the history 
Shell :: mv command in linux 
Shell :: crear usuario linux comandos 
Shell :: bash compare two strings 
Shell :: crontab mac 
Shell :: git percentage of authorship 
Shell :: install gcmcore debian 10 
Shell :: Install Deno - Shell (Mac, Linux) 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =