title: Getting "Received too large SFTP packet" when logging in with Root using WinSCP to Google Compute Engine virtual machine instance
body: <p>Hi I can login to the GCE VM with WinSCP using my own username, cannot login as root...this is by default according to Google, and can be changed.</p>
  
  <p>Changed like this:</p>
  
  <p>Step 1: Login SSH and Su Root </p>
  
  <pre><code># sudo su root
  </code></pre>
  
  <p>Step 2: Change password Root</p>
  
  <pre><code>#passwd root
  </code></pre>
  
  <p>Step 3: Config SSHD allow Root login</p>
  
  <pre><code>#nano /etc/ssh/sshd_config
  PermitRootLogin yes
  PasswordAuthentication yes
  
  #service sshd restart (I used ssh as I'm using ubuntu and sshd wouldn't work)
  </code></pre>
  
  <p>Tried to login as root via WinSCP but I get </p>
  
  <blockquote>
    <p>"Received too large (1349281121 B) SFTP packet. Max supported packet
    size is 1024000 B.  The error is typically caused by message printed
    from startup script (like .profile). The message may start with
    'Plea'." Cannot initialize SFTP protocol. Is the host running a SFTP
    server?"</p>
  </blockquote>
  
  <p>Any ideas?</p>