Results 1 to 7 of 7

Thread: ssh to remote host

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Location
    Nairobi
    Posts
    8

    ssh to remote host

    Up until yesterday, i could ssh to a remote system in my network.But now......

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
    @ 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 the RSA host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    26:cd:d9:4d:f8:7e:14:27:a5:8b:0a:48:09:0e:a5:d2.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending key in /root/.ssh/known_hosts:2
    RSA host key for ppgp1 has changed and you have requested strict checking.
    Host key verification failed.



    Host and remote OS : knoppix linux. How can I resolve this?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    203
    Delete the entry in /root/.ssh/known_hosts. Then rerun ssh.

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Location
    Nairobi
    Posts
    8

    what ???

    the file known_hosts:





    |1|M+cvGv+SeYGSYVOb4v4lp6Z4+W4=|l8aAQJc9eBpm2D7N1B HOnTWj7O0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzWUC1SrB0jFuU3xgtSBosK Uyv+1CO8QDDNyXxjaXhl7t+G2I5oIDO84gn xQ0wi4DcK3kjA3LvF8HAaBTgAlsg6XwLrHaPr4ycBBxinER3FR nfEbsnAPX99610ztI3VaF+IpfRC4GshQm2GrpFxAGFzUAboRhF XxQmSCjL91b7tg72OHveXezgZYtl94qz5ITTSnznNQ7je3dWVE xSHd jMOw1oIKd0lfcqMkxJEyfWpksm1qKhSi9pXgUrRfDftsSjXO8+ tf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m6DMaBIZTJf5HGvsP0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9j5ksltVZJ7E9P3ydQ9HKJ 2NoNeNHAb8i+Q/EmoBHSKFIXiriSM03v2jO SQrhe5vRpVMIsgV8CHDAwM0TCmiIKbz7LG0ZUGlDUfOnvMg9XO e3FhF2wAT85ZTgQgCaOYU9eehH3A2ak2OqknOw2z9KgUmfNPDm cSI/86aNYCnROXzVxHP4n3JLdEPOtArLq7RleXnJHSVP9LD2ttKW0d JYN3N7BSKFPstTEGhZkh/CltAGN+RVApUHlYLEvlPUuJ3LZmRJqadw9RfNc4nil0ZK2EBAN QNs53qF8ilMLq010aeEGHAgaj0jcObhwaXVGTL6cc6kzRk879E 9vDMXs+5UQ==

  4. #4
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    203
    I'd delete the whole file and start ssh again as if it was the first time
    that you ran it. I don't have a remote_hosts file but I can run
    ssh 192.168.0.3 to connect to one of the computers on my lan and ssh
    will create the file for me.

  5. #5
    Junior Member
    Join Date
    Jan 2007
    Location
    Nairobi
    Posts
    8

    Thanx

    Deleting the contents did work...I can npw ssh to the remote host.....thx alot....but
    what actually happened? and what happened after the deletion?

  6. #6
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    When you first contact an sshd on a machine, this will leave a "fingerprint"
    of that machine in your .ssh/known_hosts. At any later connection to that machine
    your ssh will consult that fingerprint and warn you if it doesn't match with
    what the remote site offers. Probably the sshd was a new installation - at that
    time a new fingerprint would have been generated, causing the mismatch.
    Simply deleting line 2 in your known_hosts would have sufficed to remove the
    out-of-date entry.

    However: Try to make *really sure* that the other side is really what it's supposed
    to be! It could be a hijacked IP address...

  7. #7
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    203
    What happens to me is this. When I shut down my entire system, including my dsl modem, and then come back up, some or all of my ip addresses change. I'm using dynamic ip's and my dsl modem makes the assignments. I still get the same range of ip's but they're distributed differently over the various machines. This causes the mismatches in my known_hosts file. I usually just delete the file.

Similar Threads

  1. how do I find host names on my lan?
    By turbine in forum Networking
    Replies: 1
    Last Post: 04-18-2007, 09:57 AM
  2. hda: host protected area after Knoppix-3.3 ????
    By alex52 in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 02-04-2004, 04:47 AM
  3. live cd- php -nuke server&host
    By amigaman2 in forum Customising & Remastering
    Replies: 1
    Last Post: 12-22-2003, 07:39 PM
  4. Can connect to ISP but not ping any host
    By annamerikin in forum Networking
    Replies: 5
    Last Post: 06-26-2003, 04:28 AM
  5. wicked problem - cant get mirror host
    By Prophet in forum Customising & Remastering
    Replies: 0
    Last Post: 06-11-2003, 09:56 PM

Posting Permissions

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


Vintage 80s NOS Cult Computer Caretaker Perfect Data Cleaning Seinfeld Yellow picture

Vintage 80s NOS Cult Computer Caretaker Perfect Data Cleaning Seinfeld Yellow

$59.99



Apple Computer Vintage sheet of 1990s rainbow logo stickers 2 Sticker Sheet picture

Apple Computer Vintage sheet of 1990s rainbow logo stickers 2 Sticker Sheet

$4.80



Vintage Compaq 141649-004 2 Button PS/2 Gray Mouse M-S34 - FAST SHIPPING - NEW picture

Vintage Compaq 141649-004 2 Button PS/2 Gray Mouse M-S34 - FAST SHIPPING - NEW

$8.99



Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11.  Lots of 5 to 250 sheets. picture

Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.

$4.00



Vintage Iomega DittoExternal Tape Drive Data Storage AS Parts -  picture

Vintage Iomega DittoExternal Tape Drive Data Storage AS Parts -

$14.59



Compaq Presario 2100 Vintage Laptop 768MB RAM 64GB SSD Athlon XP2400 Win XP DB9 picture

Compaq Presario 2100 Vintage Laptop 768MB RAM 64GB SSD Athlon XP2400 Win XP DB9

$59.99



BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers picture

BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers

$51.50



Vintage Sony MPF920-1 1.44MB High Density 3.5

Vintage Sony MPF920-1 1.44MB High Density 3.5" floppy drive

$5.00



Vintage IBM AT 5170 8286130 Alps DFC642B01B 1.2MB 5.25 floppy drive NOS NEW picture

Vintage IBM AT 5170 8286130 Alps DFC642B01B 1.2MB 5.25 floppy drive NOS NEW

$60.00



Vintage Compaq DeskPro slim 5.25

Vintage Compaq DeskPro slim 5.25" floppy drive unknown capacity

$30.00