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

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 :: qemu download mac 
Shell :: install ssms on ubuntu 18.04 
Shell :: git clone to specific folder 
Shell :: delete lines that contain a pattern in unix 
Shell :: -v /var/run/docker.sock jenkins/jenkins 
Shell :: how set php version for composer in ubuntu 
Shell :: mocha quiet 
Shell :: install heroku cli for linux 
Shell :: linux recursive find file content 
Shell :: ubuntu chang host name 
Shell :: enable systemd 
Shell :: vscode terminal shell font broken 
Shell :: github update personal access token 
Shell :: [from -y ] is not understood in combination with the other options 
Shell :: sbatch: error: Batch script contains DOS line breaks ( ) sbatch: error: instead of expected UNIX line breaks ( ). 
Shell :: what does the export command do in linux 
Shell :: regex for url in bash 
Shell :: catkin install 
Shell :: Run valet secure 
Shell :: doe snot appear to be a git repository 
Shell :: bash for stdin 
Shell :: get library list linux 
Shell :: how to git clone into a directory 
Shell :: remove directory not empty windows 
Shell :: vite js install 
Shell :: grep recursive filename matching 
Shell :: print variable in bash 
Shell :: command to list hardware in linux 
Shell :: run redis server 
Shell :: git clone specific version 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =