Tuesday, March 25, 2025

rclone over ssh / sftp

 Tried installing the latest rclone - version v1.69.1 using the deb file and testing an ssh / sftp remote. Finally got it to work. Used the key_file option and passed on the path to our AWS-generated PEM file as the key_file - all other options were left as default with <ENTER>

A point to note is that if we do 

rclone ls nameofourremote:/

it will list all the files on the remote recursively! Instead, we can do

rclone lsd nameofourremote:/some/path

to list only the directories inside the specified path.

Edit: We can mount the drive remotely with sshfs also - on Windows, 

https://green.cloud/docs/how-to-mount-remote-file-systems-using-sshfs-on-windows/

On Linux,

https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh

Apparently sshfs is deprecated, and rclone may be faster also - 

https://obviy.us/blog/comparing-sshfs-rclone-mount/

No comments:

Post a Comment