Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ssh copy folder from local to remote

scp -r -P xxxx /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Comment

how to copy directory to a ssh server

# Copy from machine a to b
scp -r /path/to/directory user@ipaddress:/path/to/destination

# Copy from machine b to a
scp -r user@ipaddress:/path/to/destination /path/to/directory
Comment

ssh copy folder from local to remote

scp -ra /path/to/local/storage user@remote.host:/path/to/copy
Comment

copy folder from ssh to local

scp -r user@your.server.example.com:/path/to/foo /
Comment

ssh copy folder from local to remote

scp /path/of/your/local/filename username@hostname:/path/to/remote/server/folder
Comment

ssh copy folder from local to remote

scp username@hostname:/path/of/remote/server/filename /path/to/local/destination/folder
Comment

ssh copy folder from local to remote

scp -P xxxx username@hostname:/path/of/remote/server/filename /path/to/local/destination/folder
Comment

ssh copy folder from local to remote

scp -r /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Comment

ssh copy folder from local to remote

scp -P xxxx /path/of/your/local/filename username@hostname:/path/to/remote/server/folder
Comment

copy folder from ssh server to local

scp -r username@IP:/path/to/server/source/folder/  .
Comment

PREVIOUS NEXT
Code Example
Shell :: bash delete files older than 
Shell :: github clone 
Shell :: git remove keep local 
Shell :: delete all git ignored files 
Shell :: bash scripting tutorial 
Shell :: gdal_translate kmz transparent nodata 
Shell :: Filter in terminal 
Shell :: add existing project on github 
Shell :: ssh into rpi 0 
Shell :: git list last marge 
Shell :: sol-merger command 
Shell :: Install heroicons npm install @headlessui 
Shell :: git The requested URL returned error: 403 
Shell :: how know snap package size 
Shell :: git remove one commit in the middle 
Shell :: git server 
Shell :: Repositories (/etc/apt/sources.list) 
Shell :: create ovpn file linux 
Shell :: gnome tool for open pdf file from terminal 
Shell :: Could not execute because the application was not found or a compatible .NET SDK is not installed. 
Shell :: pwsh exit script 
Shell :: heading in github readme 
Shell :: exec format error heroku docker file M1 chip 
Shell :: linux between subshell variables 
Shell :: * Github. : [RUKS](https://github.com/muntazir-halim) 
Shell :: Split a string by spaces -- preserving quoted substrings -- in Python 
Shell :: yarn gem 
Shell :: ubuntu r package install problem 
Shell :: exit code: 127 
Shell :: shell using Loops to Add Element in XML File in Powershell 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =