#134 known_hosts file duplicate records are not auto-deleted

closed
nobody
None
1
2012-12-14
2012-12-07
Kalin Ivanov
No

Use of uninitialized value $known_hosts in concatenation (.) or string at /opt/pac/lib/pac_conn line 1321.
Unsuccessful open on filename containing newline at /opt/pac/lib/pac_conn line 1321.
Use of uninitialized value $known_hosts in concatenation (.) or string at /opt/pac/lib/pac_conn line 1321.
ERROR: could not open for reading '' (No such file or directory) at /opt/pac/lib/pac_conn line 1321.

Discussion

    • priority: 5 --> 1
     
  • Hi!

    Could you please send me the whole output when that is happening?

    - David.

     
  • Kalin Ivanov
    Kalin Ivanov
    2012-12-11

    apt-get remove --purge openssh-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    openssh-server*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 826 kB disk space will be freed.
    Do you want to continue [Y/n]?
    (Reading database ... 449215 files and directories currently installed.)
    Removing openssh-server ...
    ssh stop/waiting
    Purging configuration files for openssh-server ...

    apt-get install openssh-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    rssh molly-guard openssh-blacklist openssh-blacklist-extra monkeysphere
    The following NEW packages will be installed:
    openssh-server
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 339 kB of archives.
    After this operation, 826 kB of additional disk space will be used.
    Get:1 http://bg.archive.ubuntu.com/ubuntu/ precise/main openssh-server amd64 1:5.9p1-5ubuntu1 [339 kB]
    Fetched 339 kB in 0s (942 kB/s)
    Preconfiguring packages ...
    Selecting previously unselected package openssh-server.
    (Reading database ... 449198 files and directories currently installed.)
    Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1_amd64.deb) ...
    Processing triggers for ureadahead ...
    Processing triggers for ufw ...
    Processing triggers for man-db ...
    Setting up openssh-server (1:5.9p1-5ubuntu1) ...
    Creating SSH2 RSA key; this may take some time ...
    Creating SSH2 DSA key; this may take some time ...
    Creating SSH2 ECDSA key; this may take some time ...
    ssh start/running, process 5384

    CONNECTING WITH 'localhost' =->

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    31:5d:6b:95:0f:de:fc:f7:06:cb:41:87:4c:ec:12:a7.
    Please contact your system administrator.
    Add correct host key in /home/kivanov/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /home/kivanov/.ssh/known_hosts:556
    remove with: ssh-keygen -f "/home/kivanov/.ssh/known_hosts" -R localhost
    ECDSA host key for localhost has changed and you have requested strict checking.
    Use of uninitialized value $known_hosts in concatenation (.) or string at /opt/pac/lib/pac_conn line 1321.
    Unsuccessful open on filename containing newline at /opt/pac/lib/pac_conn line 1321.
    Use of uninitialized value $known_hosts in concatenation (.) or string at /opt/pac/lib/pac_conn line 1321.
    ERROR: could not open for reading '' (No such file or directory) at /opt/pac/lib/pac_conn line 1321.

     
  •  
    Attachments
  • Hi!
    Could you please substitute your original (baackup it first!) /opt/pac/lib/pac_conn file with the one attached, and try again, please??

    - David.

     
  • Kalin Ivanov
    Kalin Ivanov
    2012-12-13

    CONNECTING WITH 'BETA - localhost' =->

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    31:5d:6b:95:0f:de:fc:f7:06:cb:41:87:4c:ec:12:a7.
    Please contact your system administrator.
    Add correct host key in /home/kivanov/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /home/kivanov/.ssh/known_hosts:556
    remove with: ssh-keygen -f "/home/kivanov/.ssh/known_hosts" -R localhost
    ECDSA host key for localhost has changed and you have requested strict checking.
    Host key verification failed.

    <-= DISCONNECTED (PRESS <ENTER> TO RECONNECT)

    CONNECTING WITH 'BETA - localhost' =->

    The authenticity of host 'localhost (127.0.0.1)' can't be established.
    ECDSA key fingerprint is 31:5d:6b:95:0f:de:fc:f7:06:cb:41:87:4c:ec:12:a7.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
    kivanov@localhost's password:
    Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-34-generic x86_64)

    * Documentation: https://help.ubuntu.com/

    Last login: Tue Dec 11 21:28:24 2012 from localhost

    Works great! :)

     
    • status: open --> closed
     
  • Nice!! :)

    Thank you so much for your patience!
    - David.