copy file from ssh to local
scp username@remoteHost:/remote/dir/file.txt /local/dir/
copy file from ssh to local
scp username@remoteHost:/remote/dir/file.txt /local/dir/
scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
scp local to remote
scp -i <private_key> ./file.txt remote_username@remote_ip:/remote/directory
copy file from ssh server to local
scp host_name:file_server path_local
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
copy files from local to host ssh
$ scp * remoteuser@remoteserver:/remote/folder/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us