Received too large SFTP packet. Max supported packet size is 1024000 B

Received too large SFTP packet. Max supported packet size is 1024000 B, when connecting to a VMware Platform Services Controller (PSC) with WinSCP. This is an error you get due to the way the user specified is connecting via SSH. In fact, by default, you are connected with the “appliancesh”, so WinSCP isn’t able to connect correctly.


Here’s what to do (it can be rolled back to restore the previous settings) to access the Platform Services Controller via WinSCP:

  • SSH onto the Platform Services Controller and login
  • Run the following two commands to enable the shell on the current connection
    • vmware_platform-services-controller_psc_shell-enabled
  • Now run the following command. This will enable bash at login for the user you specify. In my case, I’m happy to do it for root.
      • vmware_platform-services-controller_psc_bash-enabled-for-root
  • You are now able to connect with WinSCP.


In order to roll back, run the following against the user you enabled bash for:


Read More

Syncing data to Amazon Cloud Drive via command line

ATTENTION: The below no longer applies due to Amazon changing their mind on both rclone (which has been banned) and their unlimited plan which is no longer unlimited. 🙁 However, rclone still works with Google Drive, Dropbox etc.

Amazon Cloud Drive (ACD) would be great if only could come with a better software to support it. Unfortunately, at today (Jan 2017), the application provided by Amazon is kind of useless for any type of user because you have to manually select and sync/upload folders and there’s no way to schedule such process. This is even more annoying if you are already used with Dropbox, One Drive or Google Drive that automatically sync all of your changes.

So I was looking for an application that would allow me to syncing data to Amazon Cloud Drive via command line and, after searching a bit around, I came across rclone ( Personally, I do not like using 3rd party applications, but I totally suggest the use of this one. It doesn’t require to be installed and it’s very small in size (10MB).
It also allow you to sync other cloud accounts to another cloud account: so for instance you could sync everything on your Google Drive to ACD!

With just a single line of code, you will be able to start a sync (one way only), a copy or a check (there are more features available, look on rclone’s website for an up to date list). The only thing that is required before starting syncing data to Amazon Cloud Drive via command line is the initial configuration. In the below procedure, we’ll use the Windows version.

Configuring rclone for the first time

  • Open a new command prompt.
  • Browse to the rclone folder (you may download the latest version from
  • Type the following and press Enter.
  • As this is the first time you run the configuration, rclone will complain that the config file isn’t found. Just press n to create a New remote.
    • rclone_config_first-time
  • You are now prompt for the name. I used “amazonclouddrive”.
  • It’s time to choose the remote service, as you can see there are many available, we will obviously select Amazon Drive by typing the number associated to it, so 1.
    • rclone_amazonclouddrive
  • Press enter once prompt for the Application Client ID.
  • Press enter again for the Application Client Secret.
  • Press Y to use the auto config.
    • rclone_application-client-id-blank_application-client-secret-blank_auto-config-yes
  • Now your default browser will open to the Amazon Login page. Login with your credentials and then grant access to rclone.
    • rclone_amazonclouddrive_login
    • rclone_amazonclouddrive_success
    • rclone_amazonclouddrive_success_2
    • Once you’re back in the command prompt, you will see it successfully configured it.
  • You may run through the same steps again with Dropbox, Google Drive or anything else listed in rclone’s config.
  • This is rclone’s official procedure for Amazon Cloud Drive:
  • The configuration is saved by default in the user’s profile folder. You may copy the configuration on other machines (I recommend password protecting the config file though).
    • In order to password protect the config file, run rclone.exe config again, then type s to set a password, type c, and finally specify the password. Next time you run the config, it’ll be asking you for a password.


Syncing data to Amazon Cloud Drive via command line

Now that we have ACD set up, let’s see how to run a basic sync of the folder c:\users\myuser\desktop\mydata to the folder Backups\mydata which sits on ACD:

That simple. Imagine now that you could add this to a complex script or just to a scheduled task.

You can also sync from a network share (and doesn’t need to be mapped):

If you’re copying a folder with a large number of files, I suggest you to increase the number of checkers and the number of transfers (multithreading – Default Checkers is 8 and default Transfers is 4):

Finally, if you want to sync let’s say Dropbox to ACD:

Remember that Dropbox will have to be configured before proceeding. As you can see, I’m selecting the whole Dropbox account.

Read More

Install Wake on LAN on a NAS

I have a couple of NAS boxes and I wanted to install a Wake on LAN application on one of them so that I could turn my devices connected to the LAN through one of them. The main reason why I wanted to do this is because my home router doesn’t support Wake on WAN (so it’s not able to translate the initial request and broadcast it).
Since the NAS is always connected to the network, I can use it to turn on my home computer for instance: that’ll allow me to turn it on only when I need it.


In my specific case I decided to install it on a Iomega IX4-200D. I believe the procedure applies to other NAS devices with just little changes. The reason why I chose this NAS is because I do have a way to get the firmware back to it even when I replace all of the Hard Drives (as it happened once already!). I’ll look at writing a procedure for that whenever I have the chance.

Step by Step instructions to Install Wake on LAN on a NAS

I will try to be as much specific as possible. Be aware that I am not responsible in case you brick your own device.

  • Enable SSH if it’s still disabled. You can follow my article that describes how to enable SSH on an Iomega/Lenovo device.
  • Connect via SSH to the NAS box. On the link I posted above, it also tells you how to login on an Iomega device.
  • Backup /etc/ipkg.conf (if it exists).
    • You can backup this file using the following command:
  • Delete any existing entry in this file, or just remove the file itself by typing:
  • Add these lines one by one:

    • If you need to delete a line, press ESC (enter command mode), then select the line you want to delete with the arrow keys and then type dd.
    • Save the file by pressing ESC to enter command mode and type

      to exit and save the changes. If you want to exit and discard the changes, type :q!
    • If you need to return in insert mode press i followed by an Enter.
  • NAS boxes generally have an embedded OS which means they have a read only file system. So we have to use ipkg-opt to get rid of this. Run the commands below:

    • It might complain that the command isn’t recognised. In that case, try to type ipkg update.
    • Running ipkg update will give you the below result
      IX4-200D ipkg update
    • Run ipkg install ipkg-opt again
      IX4-200D ipkg install ipkg-opt
  • Run this:
  • Now backup and then edit it in vi.
  • Append the line below.
    • /opt/lib/
  • Close the SSH connection. This step is very important. (more…)

Read More

Enable SSH on your Iomega StorCenter

If you own one of the Lenovo Iomega EMC StorCenter NAS devices, you might have noticed that SSH is disabled by default and there’s no option, in the common interfaces, to turn it on. Not even in the rack editions!
Fortunately switching this option on is very simple and it’s kind of supported by Iomega/Lenovo. 🙂
Why is that? Well, the reason is very simple: when troubleshooting any issue you are experiencing, their support team might ask you a dump file or to enable options (including Enable SSH on your Iomega StorCenter) that are available only in a specific interface of the StorCenter which is not linked to in any section of the web UI. This is going to work on the R (rack) series too.
Let’s say that the address of your StorCenter is and that the password of your primary administrative account is Welcome.

If you own a StorCenter IX Series (IX2-200, IX4-200d etc..) Cloud Edition you want to reach this address (remember to replace the IP we’re using in the example with the IP of your NAS):

If you own a StorCenter PX Series (PX2-300d, PX4, PX6 etc..) you want to reach the diagnostics page through this link:

If you own an older IX Series (pre Cloud Edition), then you will need to reach this address:

Cloud Edition Series
Once on the diagnostics.html page, you will see the option (Allow remote access for support) straight away, see the following screenshot.

Iomega Enable SSH CloudEdition


Read More