Installing Veeam Data Mover service Error: scp: error: unexpected filename:

KB ID: 4276
Product: Veeam Backup & Replication | 11
Published: 2022-03-02
Last Modified: 2022-03-08
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

When adding a Linux server to Veeam Backup & Replication, the New Linux Server wizard displays the error:
Installing Veeam Data Mover service Error: scp: error: unexpected filename:
screenshot of scp error
Log Example
C:\ProgramData\Veeam\Backup\Utils\Util.InfraItemSaver.log
Info    Uploading file to [/opt/veeam/upload/20220302T222803Z/VeeamTransport_11.0.1.1264.tar.gz]
Info    [Ssh] Renci Sftp setup failed: $Exception has been thrown by the target of an invocation.
Info    [CSshRenciConnectionImpl] SCP Renci connection 'afda97a0-ec25-4510-bc47-cc4ed5de2b26' has been established. Session: [SSH Session; Local: 192.168.1.21:65018; Remote: 0.0.0.0:22]
Error   Failed to upload file C:\Program Files\Veeam\Backup and Replication\Backup\Packages\VeeamTransport_11.0.1.1264.tar.gz to /opt/veeam/upload/20220302T222803Z/VeeamTransport_11.0.1.1264.tar.gz
Error   Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
Error   scp: error: unexpected filename:  (Renci.SshNet.Common.ScpException)
Error   Failed to install transport service, packaged version: [11.0.1.1264] (Veeam.Backup.Common.CRegeneratedTraceException)
Error   Failed to upload package version 11.0.1.1264 to remote directory [/opt/veeam/transport/] (Veeam.Backup.Common.CRegeneratedTraceException)
Error   Failed to upload to temporary remote directory [/opt/veeam/upload/20220302T222803Z] (Veeam.Backup.Common.CRegeneratedTraceException)
Error   Failed to upload file from "C:\Program Files\Veeam\Backup and Replication\Backup\Packages\VeeamTransport_11.0.1.1264.tar.gz" to "/opt/veeam/upload/20220302T222803Z/VeeamTransport_11.0.1.1264.tar.gz". Timeout: 10800 sec, umask: 0766 (Veeam.Backup.Common.CRegeneratedTraceException)
Error   Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
Error   scp: error: unexpected filename:  (Renci.SshNet.Common.ScpException)

Cause

The SSH client in use by Veeam Backup & Replication requires that SFTP be enabled for SSH connections.

Solution

Option 1: Change the SSH Client used by Veeam Backup & Replication

Note:This option is Veeam Backup & Replication 11/11a specific.

Create the following registry value on the Veeam Backup & Replication server to force an alternate ssh client to be used, which does not require SFTP be enabled.

Key Location: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\
Value Name: LinuxSSHClient
Value Type: DWORD (32-Bit) Value
Value Data: 3

New-ItemProperty -path 'HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication\' -name LinuxSSHClient -PropertyType DWord -Value 3

Option 2: Configure sshd to allow SFTP

Review the sshd configuration on the Linux server you are attempting to add to Veeam Backup & Replication and enable SFTP.

Generally speaking, this is controlled by a line in the /etc/ssh/sshd_config file starting with:

Subsystem sftp <binary_path> #example only

Where <binary_path> is the path to the SFTP server binary used by the Linux distribution.

Note: In most distributions, SFTP is enabled by default, therefore if it has become disabled it may have been disabled intentionally for security reasons. If for security reasons SFTP cannot be enabled, review Option 3 below.

Option 3: Enable FIPS Compliance mode in Veeam Backup & Replication

Note: This option requires Veeam Backup & Replication 11a or newer.

Enable FIPS-compliant operation mode within the Veeam Backup & Replication settings. This will cause Veeam Backup & Replication to switch to an alternate SSH client that does not require SFTP to be enabled.

 

Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.