How to transfer files using rsync and SSH?

esmond

New Member
Joined
Apr 16, 2021
Messages
3
Reaction score
1
Credits
21
I've tried using this code in install rsync in Ubuntu but it's not working.
Code:
apt-get install rsync
Is there any other way?

Thanks!
 


Can you share the error or message you are getting, it's kind of hard to guess?
 
The error message:
Code:
$ apt-get install rsync

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package rsync is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'rsync' has no installation candidate
ERROR: Job failed: exit code 1
 
Try running "sudo apt-get update" and then try again.
 
Last edited:
Before you start to install, you must make sure that the rsync utility is installed on both destination and source systems.

The second way to install is you can use your distribution's package manager

To install in Ubuntu and Debian you can use the code below:
code: sudo apt intall rsync

You must also have the access to the SSH on your computer.

You can refer to these few pages on how to securely transfer your files via rsync and SSH:
How to Securely Transfer Files via rsync and SSH on Linux
How to Transfer Files with Rsync over SSH
How to Securely Transfer Files via rsync
 

Staff online


Top