refusing non-sftp sessionFor SFTP backups, vCenter attempts to establish an SSH tunnel for faster performance. If the tunnel creation fails, the backup process falls back to using curl commands.
Therefore, if the SFTP server does not permit SSH connections, it is expected that a message such as "refusing non-sftp session" will be generated each time a backup is performed.
This situation typically originates from the SSH server configuration (sshd_config) on the backup server.
In following example, SSH connections will be denied for users belonging to the "sftponly" group.
Match Group sftponly
ChrootDirectory %h
ForceCommand internal-sftpConsider one of the following options: