Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    28

    Question connection not allowed from this server?

    I'll keep it short:
    We have a server on ISP X with RH 9.
    We have a freshly installed server on ISP Y with RH Enterprise 3.
    We have root password for both servers. Both servers have WHM 9.2.0.
    We want to move all the accounts from ISP X to the new server on ISP Y.

    This is the error we get:
    The remote server XXX.XXX.XXX.XXX unexpectedly terminated the connection. (connection not allowed from this server?)

    Anyone knows how to fix this ?

    Please help...we're running out of time.

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    28

    Default

    OK. Thanks everyone for NOT answering.

    We figured out and here is the answer so if somebody runs into the same problem knows how to fix it.

    SSH port on Server X was set to a non-standard port. The move script uses SSH to copy all accounts. We changed back the SSH port to default and everything worked like a charm.

    I hope this helps somebody else.

  3. #3
    Nic
    Nic is offline
    Member
    Join Date
    Dec 2003
    Posts
    13

    Default thanks

    Thank you so much, Ivanner!
    It worked for me.

  4. #4
    Registered User
    Join Date
    Dec 2003
    Posts
    4

    Default

    Thank you much bro. You answered your own question. Cool..

  5. #5
    Member
    Join Date
    May 2003
    Posts
    47

    Default

    How you guys change the port on the server ?
    Could you paste here the commands ?

  6. #6
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Quote Originally Posted by boyforeigner
    How you guys change the port on the server ?
    Could you paste here the commands ?
    Hello,

    Please check the following file
    /etc/ssh/sshd_config

    Let me know the status.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  7. #7
    Member
    Join Date
    May 2003
    Posts
    47

    Default

    Here it goes:



    # $OpenBSD: sshd_config,v 1.59 2002/09/25 11:17:16 markus Exp $

    # This is the sshd server system-wide configuration file. See
    # sshd_config(5) for more information.

    # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

    # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented. Uncommented options change a
    # default value.

    #Port 22
    #Protocol 2,1
    #ListenAddress 0.0.0.0
    #ListenAddress ::

    # HostKey for protocol version 1
    #HostKey /etc/ssh/ssh_host_key
    # HostKeys for protocol version 2
    #HostKey /etc/ssh/ssh_host_rsa_key
    #HostKey /etc/ssh/ssh_host_dsa_key

    # Lifetime and size of ephemeral version 1 server key
    #KeyRegenerationInterval 3600
    #ServerKeyBits 768

    # Logging
    #obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    SyslogFacility AUTHPRIV
    #LogLevel INFO

    # Authentication:

    #LoginGraceTime 120
    #PermitRootLogin yes
    #StrictModes yes

    #RSAAuthentication yes
    #PubkeyAuthentication yes
    #AuthorizedKeysFile .ssh/authorized_keys

    # rhosts authentication should not be used
    #RhostsAuthentication no
    # Don't read the user's ~/.rhosts and ~/.shosts files
    #IgnoreRhosts yes
    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
    #RhostsRSAAuthentication no
    # similar for protocol version 2
    #HostbasedAuthentication no
    # Change to yes if you don't trust ~/.ssh/known_hosts for
    # RhostsRSAAuthentication and HostbasedAuthentication
    #IgnoreUserKnownHosts no

    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    #PermitEmptyPasswords no

    # Change to no to disable s/key passwords
    #ChallengeResponseAuthentication yes

    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes

    #AFSTokenPassing no

    # Kerberos TGT Passing only works with the AFS kaserver
    #KerberosTgtPassing no

    # Set this to 'yes' to enable PAM keyboard-interactive authentication

    # Set this to 'yes' to enable PAM keyboard-interactive authentication
    # Warning: enabling this may bypass the setting of 'PasswordAuthentication'
    #PAMAuthenticationViaKbdInt no

    #X11Forwarding no
    X11Forwarding yes
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    #PrintMotd yes
    #PrintLastLog yes
    #KeepAlive yes
    #UseLogin no
    #UsePrivilegeSeparation yes
    #PermitUserEnvironment no
    #Compression yes

    #MaxStartups 10
    # no default banner path
    #Banner /some/path
    #VerifyReverseMapping no

    # override default of no subsystems
    Subsystem sftp /usr/libexec/openssh/sftp-server

    AllowTcpForwarding no

  8. #8
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Hello,

    He was using some another port instead of 22, like 3145 or any other. So he edit the file and find out the port.

    If you want to change the port; please use vi editor or any other editors
    Last edited by bijo; 06-08-2005 at 12:05 AM.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  9. #9
    Member
    Join Date
    May 2003
    Posts
    47

    Default

    looks like the problem is not wrong port, because i can copy fine from others server, just from one that I can't. So look like this one is blocked, and i get this error:

    Packaging the account... The remote server xx.xxx.xxx.xx unexpectedly terminated the connection. (wrong port or connection not allowed from this server?)Done

  10. #10
    Member bijo's Avatar
    Join Date
    Aug 2004
    Location
    India
    Posts
    475

    Default

    Quote Originally Posted by boyforeigner
    looks like the problem is not wrong port, because i can copy fine from others server, just from one that I can't. So look like this one is blocked, and i get this error:

    Packaging the account... The remote server xx.xxx.xxx.xx unexpectedly terminated the connection. (wrong port or connection not allowed from this server?)Done

    Hello,

    How did you try to connect ?. Did you try to connect user as root?
    May be the remote server using any other port instead of 22 or the remote system doesn't allow the "root" to direct login.

    Let me know the status.
    Bijo
    Yahoo: "bijo505"
    Msn: "bijo_baby@hotmail.com"
    AIM: "bijobaby"

    http://slashome.com

  11. #11
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    Also check out the /root/.ssh/known_hosts at the server you are trying to copy from...and verify the key.

Similar Threads & Tags
Similar threads

  1. Replies: 10
    Last Post: 11-18-2010, 10:03 PM
  2. The connection to the server was reset
    By Timka in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-25-2006, 12:08 PM
  3. connection not allowed from this server?)
    By cheapo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-29-2003, 06:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube