SSH "connection refused" - My Cloud gen2 (2.31.149)

@RomanC have you tried disable SSH, wait a few minutes and enable SSH?

same, I also restarted box but without success

@RomanC
I just tested

  • My Cloud on 2.30.196
  • Enable SSH
  • Login via Putty and WinSCP = OK
  • Update to 2.31.149
  • Login via Putty and WinSCP = OK

This looks like an issue with the latest firmware in which openSSH was updated.

I reset all settings and had the same issue.

I downgraded the firmware to 2.30.196 and it now works perfectly again, going to sit on this version for a while as I see no advantage in upgrading especially with a bug that makes my drive unusable

I may need to get around to properly refitting the HDD in my Gen2 and then updating it, so that I can diagnose this issue.

My guess is that WD finally decided to replace those broken Diffie Helman based keys with actual EC based keys, and now you need to update your key— but that is a supposition.

Obvious questions:

  1. How are you using SSH to talk to the mycloud? (Native Linux SSH client, Native MacOSX SSH client, PuTTY, “other”, etc.)
  2. If using native SSH, what is the EXACT error message?

We’re enable to reproduce this issue.
QUESTION: what OS and apps are you using to connect to the MC via SSH ?

I used a variety of OS to try and connect and apps.

  • Mac OSX Mojave: Filezilla and terminal
  • Manjaro Linux: filezilla and terminal
  • Windows 10: filezilla and cmd and putty

I am very experienced with SSH both as a server and connecting as a client, the issue is with the firmware, completely blocking it for some reason on some configs, perhaps stuck keys. The downgrade fixed it and I will stay on that version for now.

I just upgraded to 2.31.149. SSH is working on my system using putty.

I have the same issue here. It has nothing to do with the ssh client. I think it’s something wrong with the new firmware.

Just upgraded my other My cloud to 2.31.149. SSH also works on this system.

try… on a mac on terminal

ssh -oHostKeyAlgorithms=+ssh-dss root@.local

replacing with your cloud name of course. mine is mediaserver so I would type

ssh -oHostKeyAlgorithms=+ssh-dss root@mediaserver.local

or optionally

ssh -oHostKeyAlgorithms=+ssh-dss root@192.168.0.xxx <=== ip of your cloud

should work also.

Good Luck…

same issue (192.168.0.1 - PC, 192.168.0.100 - wdmycloud):
192.168.0.1.52119 > 192.168.0.100.22: Flags [S], seq 744887861, win 8192, options [mss 1460,nop,wscale 2,nop,nop,sackOK], length 0
192.168.0.100.22 > 192.168.0.1.52119: Flags [R.], seq 0, ack 744887862, win 0, length 0
192.168.0.1.52119 > 192.168.0.100.22: Flags [S], seq 744887861, win 8192, options [mss 1460,nop,wscale 2,nop,nop,sackOK], length 0
192.168.0.100.22 > 192.168.0.1.52119: Flags [R.], seq 0, ack 1, win 0, length 0
192.168.0.1.52119 > 192.168.0.100.22: Flags [S], seq 744887861, win 8192, options [mss 1460,nop,nop,sackOK], length 0
192.168.0.100.22 > 192.168.0.1.52119: Flags [R.], seq 0, ack 1, win 0, length 0

Hello, I have the same issue (connectivity before update, “connection refused” after 2.31.149 update)… Tried your suggestion it (also) returns exact same message;

ssh: connect to host 192.168.2.222 port 22: Connection refused

any other suggestions?

Hi there.
I have the same problem and reset all settings also and the issue persist. How you did to downgrade to 2.30.196 firmware?
Thanks in advance.

Downgrade directions and past firmware links can be found in the following discussion.

1 Like

same problem on 2.31.174
I think they don’t care about ssh!!!
BTW I imagine SSH service not start correctly after upgrade.

I downgraded to 2.30.196 firmware, I could connect by ssh, but for some reason after some days the WDMycloud upgrade to the last firmware again in spite of have the auto update option disabled. I repeated this process several times and the problem persist. Someone knows how to solve this issue? Thanks in advance.

The issue is related to the package WDMyCloud_UtilsUpdate_28.bin from MyCloud Gen2 custom apps mini repository. The package replaces the stock sshd-server and makes it incompatible with the latest firmware. To resolve this, you can first downgrade the system to My_Cloud_GLCR_2.30.196 through webUI and then remove the package. Next, you can upgrade the system and enable ssh. The user name should be sshd but not root. Finally, you can install WDMyCloud_UtilsUpdate_30.bin from MyCloud Gen2 custom apps mini repository

1 Like

Excellent, it work!!! Thank! :grinning: :grinning: :grinning:
But, I can’t install WDMyCloud_UtilsUpdate_30.bin

Resource interpreted as Document but transferred with MIME type application/xml: “http://wdmycloud/cgi-bin/apkg_mgr.cgi”.
trigger @ jquery-3.3.1.min.js:2
a.event.trigger @ jquery-migrate-1.4.1.min.js:2
(anonymous) @ jquery-3.3.1.min.js:2
each @ jquery-3.3.1.min.js:2
each @ jquery-3.3.1.min.js:2
trigger @ jquery-3.3.1.min.js:2
w.fn.(anonymous function) @ jquery-3.3.1.min.js:2
ajaxFileUpload @ VM932:177
apps_manually_install @ VM938:523
onchange @ (index):1

I don’t use WD stock system anymore. But I can give you some guidance. If you still have SSH access, you can go to /mnt/HD/HD_a2/Nas_Prog (something similar like this), open the folder WDMyCloud_UtilsUpdate_30 and run ./remove.sh $(pwd).