SSH server problems

Discussion in 'Server Operation' started by marra87, Jun 19, 2009.

  1. marra87

    marra87 New Member

    After an upgrade I have some problems with the SSH server.
    Debian Etch
    First symptom was that I could not connect to the server with a public keyfile.
    I reinstalled with "apt-get remove openssh-server openssh-client openssh-blacklist" and did "aptitude purge openssh-*". I deleted the files in /home/user/.ssh, /etc/ssh and /etc/ssh2
    I have now reinstalled the three packages.
    I suspect that I have two instances of SSH-server or something. I don't understand.

    All my config-files is in /etc/ssh, so I don't understand all the paths and the version in debug.
    Anyone knows what I should do to get back to normal?

    Code:
    www:/etc/ssh# ssh -v localhost
    debug: SshAppCommon/sshappcommon.c:154/ssh_app_get_global_regex_context: Allocating global SshRegex context.
    debug: SshConfig/sshconfig.c:2184/ssh2_parse_config: Unable to open /root/.ssh2/ssh2_config
    debug: Connecting to localhost, port 22...
    debug: Ssh2/ssh2.c:1956/main: Entering event loop.
    debug: Ssh2Client/sshclient.c:1328/ssh_client_wrap: Creating transport protocol.
    debug: SshAuthMethodClient/sshauthmethodc.c:137/ssh_client_authentication_initialize: Added "publickey" to usable methods.
    debug: SshAuthMethodClient/sshauthmethodc.c:137/ssh_client_authentication_initialize: Added "password" to usable methods.
    debug: Ssh2Client/sshclient.c:1360/ssh_client_wrap: Creating userauth protocol.
    debug: client supports 2 auth methods: 'publickey,password'
    debug: Ssh2Common/sshcommon.c:496/ssh_common_wrap: local ip = 127.0.0.1, local port = 35497
    debug: Ssh2Common/sshcommon.c:498/ssh_common_wrap: remote ip = 127.0.0.1, remote port = 22
    debug: SshConnection/sshconn.c:1889/ssh_conn_wrap: Wrapping...
    debug: Remote version: SSH-2.0-OpenSSH_3.1p1 
    debug: Ssh2Transport/trcommon.c:1373/ssh_tr_input_version: Remote version has rekey incompatibility bug.
    debug: Ssh2Transport/trcommon.c:1376/ssh_tr_input_version: Remote version is OpenSSH, KEX guesses disabled.
    debug: Ssh2Transport/trcommon.c:1717/ssh_tr_negotiate: lang s to c: `', lang c to s: `'
    debug: Ssh2Transport/trcommon.c:1783/ssh_tr_negotiate: c_to_s: cipher aes128-cbc, mac hmac-sha1, compression none
    debug: Ssh2Transport/trcommon.c:1786/ssh_tr_negotiate: s_to_c: cipher aes128-cbc, mac hmac-sha1, compression none
    debug: Remote host key found from database.
    debug: Ssh2Common/sshcommon.c:291/ssh_common_special: Received SSH_CROSS_STARTUP packet from connection protocol.
    debug: Ssh2Common/sshcommon.c:341/ssh_common_special: Received SSH_CROSS_ALGORITHMS packet from connection protocol.
    debug: server offers auth methods 'publickey,password'.
    debug: SshConfig/sshconfig.c:2184/ssh2_parse_config: Unable to open /root/.ssh2/identification
    debug: Ssh2AuthClient/sshauthc.c:316/ssh_authc_completion_proc: Method 'publickey' disabled.
    debug: server offers auth methods 'publickey,password'.
    debug: Ssh2AuthPasswdClient/authc-passwd.c:98/ssh_client_auth_passwd: Starting password query...
    root's password: 
    debug: Ssh2Common/sshcommon.c:259/ssh_common_special: Received SSH_CROSS_AUTHENTICATED packet from connection protocol.
    Authentication successful.
    debug: Ssh2Common/sshcommon.c:718/ssh_common_new_channel: num_channels now 1
    Last login: Fri Jun 19 2009 02:41:28 +0200
    No mail.
    $ 
    
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I guess you need a new public key.
    Do password-based logins work?
     
  3. marra87

    marra87 New Member

    I had two versions on the server.
    Removed, purged and removed some ssh-files.
    Then I reinstalled and generated keys, and everything is ok..
     

Share This Page