Getting "Received too large SFTP packet" when logging in with Root using WinSCP for an instance of the Google Compute Engine virtual machine

Hi, I can log in to the GCE VM using WinSCP using my own username, I cannot log in as root ... this is the default according to Google and can be changed.

Amended as follows:

Step 1: Logging in to SSH and Su Root

# sudo su root

Step 2: Change Root Password

#passwd root

Step 3: SSHD configuration allows root entry

#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)

I tried login as root via WinSCP, but I get

" (1349281121 B) SFTP. 1024000 . , script ( .profile). " "." SFTP. , SFTP ? "

?

+4
5

, WinSCP " ": sudo/usr/lib/openssh/sftp-servers

. , , , - root ?

: https://winscp.net/eng/docs/faq_su

0

SFTP. - 102400 B

: , .bashrc (, archey, screenfetch). .bashrc .

enter image description here

: , .bashrc, .bash_profile. .bash_profile .

+4

. , , . SFTP SCP, . , .

+2

Ubuntu linux , ", Ubuntu", sftp ubuntu, root.

, , !

!

+1

. WinSCP (... B) SFTP. - 102400 B

If ... (from the topic [error message]) is a very large number, then the problem is usually caused by a message printed from some profile / logon script. It violates the SFTP protocol. Some of these scenarios are even executed for non-interactive (without TTY) sessions, so they cannot print anything (and do not ask the user to enter anything).

0
source

Source: https://habr.com/ru/post/1613609/


All Articles