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

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 files from local to host ssh

$ scp * remoteuser@remoteserver:/remote/folder/
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 :: kill :80 port 
Shell :: "C:UsersMY PCAppDataRoaming pm/node_modules/node/bin/node: line 1: This: command not found" 
Shell :: docker run restart always 
Shell :: git transfer changes to another branch 
Shell :: truncate docker logs 
Shell :: ubuntu fingerprint error 
Shell :: install sdkman 
Shell :: linux set permissions during copy 
Shell :: pip install quiet 
Shell :: ifconfig not foound 
Shell :: git change commit author for all commits 
Shell :: term environment variable not set 
Shell :: grep --include 
Shell :: react native run android shows deprecated items 
Shell :: stop a process running on a port 
Shell :: install live-server via npm 
Shell :: delete files with extension recursively 
Shell :: scp download file 
Shell :: git ignore users permissions 
Shell :: push empty git commit 
Shell :: curl: (7) Failed to connect to localhost port 9200: Connection refused 
Shell :: chmod for pem file 
Shell :: bash count number of arguments 
Shell :: Setfacl 
Shell :: apt remove 
Shell :: linux history with time 
Shell :: git get clean remote branch 
Shell :: search for files in linux terminal 
Shell :: centos copy files ssh 
Shell :: install java 16 ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =