dvc: using ssh as a remote, unexpected error - Channel closed

Hi there,

I’m facing the following issue while using ssh as a remote for storing data on a disk station manager by Synology. Here is the error I’m getting after dvc push:

ERROR: unexpected error - Channel closed.

The same remote configuration works just fine when using a standard Desktop machine with Ubuntu 18 as a server. The DVC remote was created as follows:

dvc remote add remote-ssh ssh://<user name>@<ip address>:<path on the server>

dvc config core.remote remote-ssh

dvc remote modify remote-ssh ask_password true

Does anybody have an idea what needs to be changed in the ssh config?

Thanks in advance for any advice!

Best, Alexey

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

have resolved the problem with sftp, now I can ssh and sftp into the disk station machine

hey @aabramovrepo, it seems i’m having a similar issue. ssh works fine, but sftp does not, resulting in subsystem request failed on channel 0, while the config (both synology DSM UI and sshd_config) seem to indicate SFTP is enabled.

care to share how you solved your issue? it may help me.

update: fixed. it seems that somehow the permission for my user to use the ‘FTP’ application (also applicable to sftp apparently) was disabled. i reenabled via the synology DSM control panel by editing my user account.

New-PSSession -HostName xx.x.x.xx -UserName user user@xx.x.x.xx’s password: subsystem request failed on channel 0 New-PSSession: [xx.x.x.xx] The SSH client session has ended with error message: The SSH transport process has abruptly terminated causing this remote session to break.

Getting this type of error kindly help

@efiop I have resolved the problem with sftp, now I can ssh and sftp into the disk station machine, furthermore, I can copy files and directories there via scp. However, dcp push gives me the following error message:

ERROR: failed to upload '.dvc/cache/94/d190064798aeae79ea2a1eafd0042e' to 'ssh://gituser@<ip address>/volume1/DVC/94/d190064798aeae79ea2a1eafd0042e' - unable to create remote directory '/volume1': [Errno 13] Permission denied

Do you know what might be the reason for that? I’m a bit surprised seeing no colon between ip address and directory on the server. dvc remote list prints the following:

remote-ssh-nas ssh://gituser@<ip address>:/volume1/DVC

for copying files via scp the following command is used (with colon):

scp -r .dvc/cache/ gituser@<ip address>:/volume1/DVC

and it works just fine.

Thanks in advance for your help!

Cheers, Alexey

@shcheklein Not aware of any other way. But we don’t mention SFTP in our docs at all, so I guess it is worth documenting.