The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"Remote scp sent illegal error code" and slow SSH connection

Discussion in 'General Discussion' started by Brook, Jul 18, 2009.

  1. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Not sure why but today I've started to get this error message when trying to scp files over to the server.

    Also, I've noticed that logging in to SSH is now taking ages.

    It was working fine yesterday. Could a whm/cpanel update be responsible? Should I turn the automatic updates off?

    Could it be datacentre related?

    Could CSF be responsible? (I've switched the firewall and lfd off - but still the same).

    It was working fine until just recently. Any ideas what could be going on?
     
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
    Use the following .. to debug.

    ssh -v root@hostname

    -v ---> Verbose mode. Causes ssh to print debugging messages about its progress. This is helpful in debugging connection, authentica‐tion, and configuration problems. Multiple -v options increase the verbosity. The maximum is 3.
     
  3. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Kiran, the delay (19 seconds!) is occurring between these two lines:

    debug2: we sent a publickey packet, wait for reply
    debug1: Server accepts key: pkalg ssh-dss blen 433

    I've tried connecting with the same ssh client to my other server, and there is almost zero delay between those two lines (infact the whole login is almost instant on that server).

    This has only just started to happen - it was fine before :confused:

    Wonder what's going on?
     
  4. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Just fixed the delay by using this in sshd_config:

    UseDNS no

    but is it safe?

    Edit:Here's some info from openssh.com:

    That hasn't hpwever fixed the SCP issue, which is still giving me the error: Remote scp sent illegal error code
     
    #4 Brook, Jul 18, 2009
    Last edited: Jul 18, 2009
Loading...

Share This Page