Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy file from ssh server to local

scp host_name:file_server path_local
Comment

how to copy file using ssh

# This need to be done in server side only
$ sudo apt install openssh-server
$ sudo systemctl enable ssh
$ sudo systemctl start ssh
# Need to be done in client side only
$ scp myfile.txt remote_user@remote_ip_address
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

ssh usage copy file

cp original_file new_file
Comment

PREVIOUS NEXT
Code Example
Shell :: how to check endianness in linux 
Shell :: docker splunk run 
Shell :: bind folder linux 
Shell :: updated git but still showing old version 
Shell :: installing cdf 
Shell :: linux .desktop file for sh file 
Shell :: docker install ubuntu 
Shell :: git clone directory from repository 
Shell :: Push existing folder 
Shell :: delphes install 
Shell :: git tab not workingh 
Shell :: how to install pulseaudio volume control on fedora 
Shell :: linux move files one directory up 
Shell :: apache commands on debian 
Shell :: bash tab autocomplete to stdout 
Shell :: Which dotfile manager should I use for linux 
Shell :: grep only third match 
Shell :: CHROME_EXECUTABLE brave 
Shell :: linux ssh 
Shell :: windows 10 ipconfig fix 
Shell :: fast backup mac 
Shell :: NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory) 
Shell :: View Changes Before Committing in git command 
Shell :: find rm files older 
Shell :: add dependencies to package.json 
Shell :: temporary failure resolving security.ubuntu.com 
Shell :: turn on wiregurad ubuntu 
Shell :: llaravel sanctum 
Shell :: install document viewer ubuntu 
Shell :: how to open windows powershell 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =