Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

SFTP client, "Received message too long 1416128883"

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Tennessee_Rebel
n00b
n00b
Posts: 16
Joined: Thu May 17, 2007 11:31 pm

SFTP client, "Received message too long 1416128883"

  • Quote

Post by Tennessee_Rebel » Sun Jul 08, 2007 1:30 am

When I try to use sftp and connect to a remote website, I'm getting the "Received message too long 1416128883" error after adding its RSA key to the list contained in .ssh/known_hosts. I can't find anything on searching this forum for that error code and when I tried googling it there was only some sketchy information that said SFTP doesn't like echoes in my .bashrc file. But after commenting out the only echoes in it which are "PROMPT_COMMAND= ... ", the problem still remains.

My ssh_config file is the default for Gentoo 2007.1, with nothing added.

What else could be causing this problem? I'm reasonably sure the web server supports SFTP logins.

(forget it, I'm now using FTP to log in to the server and it works fine.)
Last edited by Tennessee_Rebel on Wed Jul 18, 2007 12:48 am, edited 1 time in total.
"Then said he unto them, But now, he that hath a purse, let him take it, and likewise his scrip: and he that hath no sword, let him sell his garment, and buy one." -- Luke 22:36.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Sun Jul 08, 2007 10:46 am

What's in you're .bashrc and .bash_profile files? You may want to have a look at this:

http://autosys.us/misc/sftp_received_me ... _long.html
Thomas S. Howard
Top
Tennessee_Rebel
n00b
n00b
Posts: 16
Joined: Thu May 17, 2007 11:31 pm

  • Quote

Post by Tennessee_Rebel » Mon Jul 09, 2007 4:22 am

# /etc/skel/.bashrc:
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !


# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi

# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if [[ -f ~/.dir_colors ]]; then
eval `dircolors -b ~/.dir_colors`
else
eval `dircolors -b /etc/DIR_COLORS`
fi

# Change the window title of X terminals
#case ${TERM} in
# xterm*|rxvt*|Eterm|aterm|kterm|gnome)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
# ;;
# screen)
# PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
# ;;
#esac

export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:/opt/kde/3.5/lib:${LD_LIBRARY_PATH}"
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.

if [ ${TERM} != "dumb" ]; then //recently added after checking this thread
[[ -f ~/.bashrc ]] && . ~/.bashrc
fi //
The stuff in that link isn't working. I'm still having the same problem.
"Then said he unto them, But now, he that hath a purse, let him take it, and likewise his scrip: and he that hath no sword, let him sell his garment, and buy one." -- Luke 22:36.
Top
romax
n00b
n00b
Posts: 3
Joined: Wed Jul 07, 2004 4:47 am

Re: Received message too long 1416128883

  • Quote

Post by romax » Mon Jul 09, 2007 10:45 pm

Something is definitively outputting characters, which confuses the sftp client. Look for anythings which spoils "This" as it's first bytes.

1416128883 = 0x54686973

Code: Select all

echo 54686973 | xxd -r -p
This
Difficult to track down, you might want to look into the sftp server source. Had a similiar issue with http://www.minstrel.org.uk/papers/sftp/.
Top
Tennessee_Rebel
n00b
n00b
Posts: 16
Joined: Thu May 17, 2007 11:31 pm

Re: Received message too long 1416128883

  • Quote

Post by Tennessee_Rebel » Thu Jul 12, 2007 12:58 am

romax wrote:you might want to look into the sftp server source. Had a similiar issue with http://www.minstrel.org.uk/papers/sftp/.
The server ... source?
*scratches head*

I'm not trying to build my own server and have people connect to it.
"Then said he unto them, But now, he that hath a purse, let him take it, and likewise his scrip: and he that hath no sword, let him sell his garment, and buy one." -- Luke 22:36.
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Thu Jul 12, 2007 11:22 am

Still, since the server implements sftp, you can see what input triggers these sorts of errors, which may help you track down the client-side of the problem.
Thomas S. Howard
Top
Tennessee_Rebel
n00b
n00b
Posts: 16
Joined: Thu May 17, 2007 11:31 pm

  • Quote

Post by Tennessee_Rebel » Fri Jul 13, 2007 2:26 am

@didymos: Okay, I'll try that and post whether or not it worked.

PS, when I connect to the server through ssh like so:

Code: Select all

ssh user@server -s -oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp
I get the message "This account is currently not available."

But when I use sftp normally, the debug output indicates that it has accepted my password and is starting an interactive session before it gets all the "Received message too long" junk.
"Then said he unto them, But now, he that hath a purse, let him take it, and likewise his scrip: and he that hath no sword, let him sell his garment, and buy one." -- Luke 22:36.
Top
romax
n00b
n00b
Posts: 3
Joined: Wed Jul 07, 2004 4:47 am

  • Quote

Post by romax » Fri Jul 13, 2007 9:14 pm

I get the message "This account is currently not available."
That is what I meant to say - the weird error message can be translated into a couple of characters, which form the string "This" - meaning you get the same error message with sftp as you get with ssh, which starts with "This account is"...

You probably have set the user's account shell to /sbin/nologin in /etc/passwd. Setting it to e.g. /bin/bash would work, or if you want to prevent logins and allow scp/rsync only, use scponly or for sftp you can use something along the lines of the link I posted further up.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic