Followed this steps but now i want the files from my phone to be encrypted and be able to be viewed in windows decrypted and encrypted

What is the problem you are having with rclone?

I Followed this step by step

oh, i forgot about my wiki
https://forum.rclone.org/t/rclone-on-termux-turn-your-android-phone-into-a-media-server/16064

in this example,
--- the android phone, running rclone inside termux, access over the internet using tailscale
--- the outside machine, running windows, using tailscale to access the android phone.

can do the double rclone
--- on android, this rclone command, that will create an on-the-fly sftp server.
this sftp server can be access using filezilla or any sftp client.
rclone serve sftp /storage/emulated/0/ --user=user --pass=pass --addr=100.116.26.87:2022

on windows laptop, run rclone two ways

rclone.exe copy :sftp,host=100.116.26.87,user=user,pass=vt_IP43PNxR82s7QdG8qtyxqi4Q,port=2022:Download ./Download -v --include=file.ext
INFO  : file.ext: Copied (new)
INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         4.9s

this example, on laptop, mount the android file system as a drive letter.
access using windows explorer, notepad or most any backup tool
rclone.exe mount :sftp,host=100.116.26.87,user=user,pass=vt_IP43PNxR82s7QdG8qtyxqi4Q,port=2022: x:

Now is the problem I can access my android phone files by windows with Sftp but they are all decrypted.

How can i make them encrypted?

Run the command 'rclone version' and share the full output of the command.

rclone v1.61.1

  • os/version: Microsoft Windows 11 Home 21H2 (64 bit)
  • os/kernel: 10.0.22000.1574 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Tailscale

The command you were trying to run (eg rclone copy /tmp remote:tmp)

I followed the Tutorial above and it all worked but its not encrypted and i wanna use sftp to see my files in windows but i want to have them encrypted and decrypt when needed. like rclone crypt remote



#### The rclone config contents with secrets removed.  
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

[public_html]
type = sftp
host = 100.73.225.86
user = xxxxxx
port = 2022
pass = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
key_file_pass =xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

i am glad that you found the wiki helpful, you have made good progress since your last post
Rcx android and Rclone sync crypt between each other but cant see the files

so you switched to tailscale?

for each command, on anroid and windows, run it with -vv and post the full output.

Its working already i can see with sftp in filezilla my folders of my phone.
But those are all not encrypted just the normal files. I want all those files being encrypted.

then on android, create a crypt remote.

i have the files in /storage/emulated/0/helpp/
Do need to give the crypt remote this path then?
You got a tutorial to make those crypts?

did you miss my questions?

and for each command, on anroid and windows, run it with -vv and post the full output.

I have this on windows C:\Users\Punke>rclone mount :sftp,host=100.116.26.87,user=user,pass=vt_IP43PNxR82s7QdG8qtyxqi4Q,port=2022: x:
2023/02/16 09:49:37 Failed to create file system for ":sftp,host=100.116.26.87,user=user,pass=vt_IP43PNxR82s7QdG8qtyxqi4Q,port=2022:": NewFs: couldn't connect SSH: dial tcp 100.116.26.87:2022: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

and this on android
~ $ rclone serve sftp /storage/emulated/0/helpp --user=user --pass=pass --addr=100.73.225.86:2022
2023/02/16 09:18:44 NOTICE: Loaded 0 authorized keys from "/data/data/com.termux/files/home/.ssh/authorized_keys"
2023/02/16 09:18:44 NOTICE: SFTP server listening on 100.73.225.86:2022
2023/02/16 09:19:45 ERROR : serve sftp 100.93.243.84:61449->100.73.225.86:2022: SSH login failed: EOF
2023/02/16 09:19:55 ERROR : serve sftp 100.93.243.84:61458->100.73.225.86:2022: SSH login failed: EOF

I use the ip from tailscale and yes i do because i can just use it when i need to. I dont need my files always synced. So when i need to see my files i disable my vpn and use tailscale.

next time, please add -vv, and then post the full output.

the ip address do not match?

I see thats because i dont have anything running in windows for rclone only in android the sftp is running
and i use filezilla to get access to it

this --addr=100.73.225.86 ip is the right one

https://rclone.org/crypt/

alright here is the full output when i do it in android

~ $ rclone serve sftp /storage/emulated/0/helpp --user=user --pass=pass --addr=100.73.225.86:2022 -vv
2023/02/16 13:31:35 DEBUG : rclone: Version "1.61.1-termux" starting with parameters ["rclone" "serve" "sftp" "/storage/emulated/0/helpp" "--user=user" "--pass=pass" "--addr=100.73.225.86:2022" "-vv"]
2023/02/16 13:31:35 DEBUG : Creating backend with remote "/storage/emulated/0/helpp"
2023/02/16 13:31:35 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2023/02/16 13:31:35 INFO : Local file system at /storage/emulated/0/helpp: poll-interval is not supported by this remote
2023/02/16 13:31:35 NOTICE: Loaded 0 authorized keys from "/data/data/com.termux/files/home/.ssh/authorized_keys"
2023/02/16 13:31:35 DEBUG : Loaded private key from "/data/data/com.termux/files/home/.cache/rclone/serve-sftp/id_rsa"
2023/02/16 13:31:35 DEBUG : Loaded private key from "/data/data/com.termux/files/home/.cache/rclone/serve-sftp/id_ecdsa"
2023/02/16 13:31:35 DEBUG : Loaded private key from "/data/data/com.termux/files/home/.cache/rclone/serve-sftp/id_ed25519"
2023/02/16 13:31:35 NOTICE: SFTP server listening on 100.73.225.86:2022

ok, that looks good.

im not sure which one i need to do in windows which command first because /storage/emulated/0/helpp doesnt exist in windows

create the crypt remote on android.
get that working, then deal with windows.

Name Type
==== ====
public_html crypt

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

~ $ rclone config -vv
2023/02/16 13:39:22 DEBUG : rclone: Version "1.61.1-termux" starting with parameters ["rclone" "config" "-vv"]
2023/02/16 13:39:22 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
Current remotes:

Name Type
==== ====
public_html crypt

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

rclone lsd public_html: -vv works without errors?

please post the redacted config for public_html crypt

2023/02/16 13:53:59 DEBUG : rclone: Version "1.61.1-termux" finishing with parameters ["rclone" "config" "-vv"]
~ $ rclone lsd public_html: -vv
2023/02/16 13:54:21 DEBUG : rclone: Version "1.61.1-termux" starting with parameters ["rclone" "lsd" "public_html:" "-vv"]
2023/02/16 13:54:21 DEBUG : Creating backend with remote "public_html:"
2023/02/16 13:54:21 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2023/02/16 13:54:21 DEBUG : Creating backend with remote "/storage/emulated/0/helpp"
2023/02/16 13:54:21 DEBUG : 7dhkSj: Skipping undecryptable dir name: illegal base32 data at input byte 6
2023/02/16 13:54:21 DEBUG : TheyLoveHerStori.mp4: Skipping undecryptable file name: illegal base32 data at input byte 3
2023/02/16 13:54:21 DEBUG : 20211017_101721_1_1(1).3gp: Skipping undecryptable file name: illegal base32 data at input byte 8
2023/02/16 13:54:21 DEBUG : 2022-02-01_2227600907.mp4: Skipping undecryptable file name: illegal base32 data at input byte 4
2023/02/16 13:54:21 DEBUG : dance with Rizz.mp4: Skipping undecryptable file name: illegal base32 data at input byte 3
2023/02/16 13:54:21 DEBUG : Loose Tank Bouncing in Car.mp4: Skipping undecryptable file name: illegal base32 data at input byte 5
2023/02/16 13:54:21 DEBUG : Hand.webm: Skipping undecryptable file name: illegal base32 data at input byte 8
2023/02/16 13:54:21 DEBUG : Shelf Bounce.webm: Skipping undecryptable file name: illegal base32 data at input byte 2
2023/02/16 13:54:21 DEBUG : 2 go routines active

How? to do that