Is this expected behavior?

What is the problem you are having with rclone?

rclone tries to do ssh login when the config file says there is no shell. It was possible to mount fort_tu1_2 fine but the anomaly showed up with fort_tu1_3. The config had an ssh command for fort_tu1_3 when "shell_type=none".

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

C:\Users\justme>rclone --version
rclone v1.65.2
- os/version: Microsoft Windows 10 Home 22H2 (64 bit)
- os/kernel: 10.0.19045.4046 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: cmount

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

None. SFTP server that comes with Ubuntu 22.04

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

C:\Users\justme>rclone mount fort_tu1_3:/fort Z:
2024/03/11 13:34:47 NOTICE: fort_tu1_3: --sftp-ssh is in use - ignoring user/host/port from config - set in the parameters to --sftp-ssh (remove them from the config to silence this warning)
2024/03/11 13:36:09 Failed to create file system for "fort_tu1_3:/fort": NewFs: couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF

C:\Users\justme>

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[fort_tu1]
type = sftp
host = XXX
user = XXX
key_pem = XXX
ssh = ssh -i C:\Users\ayoub\.ssh\id_ed25519_tu1.pem tu1@aaa.bbb.ccc.ddd
known_hosts_file = C:\Users\ayoub\.ssh\known_hosts
shell_type = none
skip_links = true
idle_timeout = 10m0s

[fort_tu1_2]
type = sftp
host = XXX
user = XXX
key_file = C:\Users\ayoub\.ssh\id_ed25519_tu1
ssh =
shell_type = none
skip_links = true
idle_timeout = 10m0s

[fort_tu1_3]
type = sftp
host = XXX
user = XXX
key_file = C:\Users\ayoub\.ssh\id_ed25519_tu1
ssh = ssh  -i C:\Users\ayoub\.ssh\id_ed25519_tu1 tu1@aaa.bbb.ccc.ddd
shell_type = none
skip_links = true
idle_timeout = 10m0s

A log from the command that you were trying to run with the -vv flag

C:\Users\justme>rclone mount fort_tu1_3:/fort Z: -vv
2024/03/11 13:21:25 DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "mount" "fort_tu1_3:/fort" "Z:" "-vv"]
2024/03/11 13:21:25 DEBUG : Creating backend with remote "fort_tu1_3:/fort"
2024/03/11 13:21:25 DEBUG : Using config file from "C:\\Users\\justme\\Desktop\\rclone\\rclone.conf"
2024/03/11 13:21:25 NOTICE: fort_tu1_3: --sftp-ssh is in use - ignoring user/host/port from config - set in the parameters to --sftp-ssh (remove them from the config to silence this warning)
2024/03/11 13:21:25 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:21:25 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:21:33 DEBUG : pacer: low level retry 1/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:21:33 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/03/11 13:21:33 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:21:33 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:21:41 DEBUG : pacer: low level retry 2/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:21:41 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/03/11 13:21:41 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:21:41 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:21:49 DEBUG : pacer: low level retry 3/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:21:49 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/03/11 13:21:49 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:21:49 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:21:58 DEBUG : pacer: low level retry 4/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:21:58 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/03/11 13:21:58 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:21:58 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:06 DEBUG : pacer: low level retry 5/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:06 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/03/11 13:22:06 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:22:06 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:14 DEBUG : pacer: low level retry 6/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:14 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:22:14 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:22 DEBUG : pacer: low level retry 7/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:22 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:22:22 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:30 DEBUG : pacer: low level retry 8/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:30 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:22:30 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:39 DEBUG : pacer: low level retry 9/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:39 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: creating additional session
2024/03/11 13:22:39 DEBUG : sftp://tu1@208.113.134.46:22//fort: ssh external: running: ssh  -i C:\Users\justme\.ssh\id_ed25519_tu1 tu1@208.113.134.46 -s sftp
2024/03/11 13:22:47 DEBUG : pacer: low level retry 10/10 (error couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF)
2024/03/11 13:22:47 Failed to create file system for "fort_tu1_3:/fort": NewFs: couldn't initialise SFTP: error receiving version packet from server: server unexpectedly closed connection: unexpected EOF

C:\Users\justme>

Is this user a bot posting ChatGPT answers in order to hide spam links?

Yes:) Even without links I think we should delete obvious AI answers - especially if no follow up.

2 Likes

It really is a bummer of a world we live in sometimes. I deleted it.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.