Disclaimer: I have already referred to the post - Connection issue with RCLONE SFTP - #2 by Shashi_Bandgar that contains this issue in one of the responses whereby the error is attributed to incorrect host, but in my case the host is correct and able to ping/login using SFTP.
Problem : Rclone is running within k8
Trying to move a file from one folder to another in SFTP.
Rclone version:
rclone v1.63.1
- os/version: alpine 3.18.2 (64 bit)
- os/kernel: 5.15.0-1037-gke (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none
SFTP hosted on Google cloud.
rclone move -vvv test_remote:testuser test_remote:testuser/Archive/sftp/
[test_remote]
type = sftp
host = <googleCloudHost>.google.<company_domain>.net
pass =
port = 31022
root_directory = /
Log from move command with vvv
2024/06/24 07:42:53 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "move" "-vvv" "testint3o9sol_7069_SFTP_838d5021_3e98_49fd_9a7e
_27087c1f21e5:testuser" "test_remote:testuser/Archive/sftp/"]
2024/06/24 07:42:53 DEBUG : Creating backend with remote "test_remote:testuser"
2024/06/24 07:42:53 DEBUG : Using config file from "/config/rclone/rclone.conf"
2024/06/24 07:42:54 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser: New connection 10.4.35.57:38136->10.4.48.61:31022
to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:42:54 DEBUG : pacer: low level retry 1/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:42:54 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/06/24 07:42:54 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser: New connection 10.4.35.57:39730->10.4.48.67:31022
to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:42:54 DEBUG : pacer: low level retry 2/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
/config/rclone # rclone move -vvv test_remote:testuser/sftp/dl_to_sftp testint3o9sol_7069_SFTP_838d502
1_3e98_49fd_9a7e_27087c1f21e5:testuser/Archive/sftp/
2024/06/24 07:43:14 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "move" "-vvv" "testint3o9sol_7069_SFTP_838d5021_3e98_49fd_9a7e
_27087c1f21e5:testuser/sftp/dl_to_sftp" "test_remote:testuser/Archive/sftp/"]
2024/06/24 07:43:14 DEBUG : Creating backend with remote "test_remote:testuser/sftp/dl_to_sftp"
2024/06/24 07:43:14 DEBUG : Using config file from "/config/rclone/rclone.conf"
2024/06/24 07:43:14 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:47646->
10.4.48.61:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 1/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:33514->
10.4.48.35:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 2/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:35090->
10.4.48.4:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 3/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:52188->
10.4.48.40:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 4/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/06/24 07:43:16 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:55176->
10.4.48.21:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:16 DEBUG : pacer: low level retry 5/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:16 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/06/24 07:43:18 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:58976->
10.4.48.42:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:18 DEBUG : pacer: low level retry 6/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:20 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:52194->
10.4.48.40:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:20 DEBUG : pacer: low level retry 7/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:22 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:56586->
10.4.48.98:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:22 DEBUG : pacer: low level retry 8/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:24 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:58198->
10.4.48.42:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:24 DEBUG : pacer: low level retry 9/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:3351
4->10.4.48.35:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 2/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:3509
0->10.4.48.4:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 3/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/06/24 07:43:15 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5218
8->10.4.48.40:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:15 DEBUG : pacer: low level retry 4/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:15 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/06/24 07:43:16 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5517
6->10.4.48.21:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:16 DEBUG : pacer: low level retry 5/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:16 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/06/24 07:43:18 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5897
6->10.4.48.42:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:18 DEBUG : pacer: low level retry 6/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:20 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5219
4->10.4.48.40:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:20 DEBUG : pacer: low level retry 7/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:22 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5658
6->10.4.48.98:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:22 DEBUG : pacer: low level retry 8/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:24 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5819
8->10.4.48.42:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:24 DEBUG : pacer: low level retry 9/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:26 DEBUG : sftp://testuser@<googleCloudHost>.google.<company_domain>.net:31022/testuser/sftp/dl_to_sftp: New connection 10.4.35.57:5541
0->10.4.48.21:31022 to "SSH-2.0-OpenSSH_8.4p1 Debian-5+deb11u1"
2024/06/24 07:43:26 DEBUG : pacer: low level retry 10/10 (error couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>)
2024/06/24 07:43:26 Failed to create file system for "test_remote:testuser/sftp/dl_to_sftp": NewFs:
couldn't initialise SFTP: ssh: unexpected packet in response to channel open: <nil>
Pls let me know any pointers to fix this issue of moving files/directories between folders in an SFTP (hosted on google cloud) using RClone.
Thanks!