Find the answer to your Linux question:
Results 1 to 8 of 8
Does anyone know how to fix this error regarding sftp? I keep getting this error whenever I try to use it "Received message too long <some long interger>"...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    sftp error


    Does anyone know how to fix this error regarding sftp? I keep getting this error whenever I try to use it "Received message too long <some long interger>"
    The best things in life are free.

  2. #2
    Linux Newbie
    Join Date
    Apr 2003
    Location
    UK, Manchester
    Posts
    147

  3. #3
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    craig,

    Thank you so much for this. I've been trying to solve this for days.
    The best things in life are free.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    6
    Amen. This Received message too long error could have been quite the pain.

    Thanks.

    In case that link goes down, the solution is to eliminate any and all commands that output text that might be in your .bashrc (or similar) files. Like if you have your .bashrc set to say "Hello. How are you?" That's going to cause this error...oye.

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    isolating problem

    hello:

    i have read many websites about this problem, and have searched my .bashrc file for text outputting commands. the file follows my message body.

    i have narrowed it down to two commands:
    export PS1='\[\e[31m\][\u@\h \W] \[\e[0m\]'
    . $HOME/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/bashrc

    if i comment one of those out, i can sftp in. if both are uncommented, i cannot sftp in. i get the 'long message' error. [fyi: the decimal returned is 45786563]

    can anyone offer any suggestions? thank you!

    ryanC

    \\\\\\ .bashrc file
    # base-files version 3.7-1

    # ~/.bashrc

    # user
    # 02/08/07


    # Shell Options
    # #############

    # When changing directory small typos can be ignored by bash
    # for example, cd /vr/lgo/apaache would find /var/log/apache
    shopt -s cdspell

    # sets the command prompt display
    export PS1='\[\e[31m\][\u@\h \W] \[\e[0m\]'


    # Completion options
    # ##################

    # If this shell is interactive, turn on programmable completion enhancements.
    # Any completions you add in ~/.bash_completion are sourced last.
    # case $- in
    # *i*) [[ -f /etc/bash_completion ]] && . /etc/bash_completion ;;
    # esac


    # History Options
    # ###############

    # Don't put duplicate lines in the history.
    export HISTCONTROL="ignoredups"

    # Ignore some controlling instructions
    export HISTIGNORE="[ ]*:&:bg:fg:exit"

    # limits the size of the history
    export HSTSIZE=50


    # Aliases
    # #######

    # colors the files listed and classifes by filetype
    # prints the size of files in kilobytes and megabytes
    alias ls='ls --color=auto -CFHh'

    # lists all files in a directory save for . and ..
    alias la='ls -A'

    # lists all files except . and .. in verbose format
    alias ll='la -l'

    # displays the history
    alias h='history'

    # kills a process that a plain kill cannot
    alias kill='kill -9'

    # prompts before overwriting files when copying,
    # confirms file removal, confirms file move
    # and lists files cp/rm/mv
    alias cp='cp -iv'
    alias rm='rm -iv'
    alias mv='mv -iv'

    # avoids any confirmation of actions
    # and lists files rm/cp/mv
    alias brm='/bin/rm -v'
    alias bmv='/bin/mv -v'
    alias bcp='/bin/cp -v'

    # prints information on the processes I am running
    # e-selects all processes, f-shows full listing
    # | pipes the output of those commands into grep
    # which then prints only the lines relating to me
    alias psme='ps -ef | grep $USER'

    # ssh and sftp to lionxo accounts or psu
    alias xo='ssh -Yl user host'
    alias ftpxo='sftp user@host'
    alias psu='ssh -X user host'
    alias ftpsu='sftp user@host'

    # move around the computers
    alias home='cd ~'

    # Default to human readable figures the commands for
    # Disk Free and Disk Used
    alias df='df -h'
    alias du='du -h'

  7. #6
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    follow up

    the decimal output is, in ascii, Exec

    so that is what the sftp is returning as the overflow characters. what about my .bashrc outputs Exec ?

    or anything, for that matter??

    Thank you!

  8. #7
    Just Joined!
    Join Date
    Nov 2006
    Posts
    6
    What's open foam, dare I ask?

    You may just be fine commenting that line out at all times is my thought...

  9. #8
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    Unfortunately I can't, I need to leave that in there to run the program that I use later. OpenFOAM is an open source CFD (computational fluid dynamics) code that I use.

    ref: http://www.opencfd.co.uk/openfoam/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •