LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2009, 09:13 PM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
knownhost issue with ssh


I have to log on to a server via a specific port (with -p), i.e,

$ ssh -p 10233 root@9.1.3.453

Once I did that, it asked me to accept connection.

Then I try to connect to other port of the machine, says 10234

$ ssh -p 10234 root@9.1.3.453

This is not working unless I delete the 9.1.3.453 line in the
.ssh/knownhost

Is there a way to connect to the machine without having to remove the content in the knownhost?
 
Old 11-18-2009, 11:22 PM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
Try adding a hostname and alias for this system /etc/hosts. Then use one hostname for first port and the other hostname for the second port.
 
Old 11-18-2009, 11:47 PM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
hmm I don't have this issue, I just tested with using the same hostname and then using the ssh servers ip address.


Can you paste the error?

You could [sym]link ~/.ssh/known_hosts to /dev/null maybe
 
Old 11-19-2009, 10:52 AM   #4
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Original Poster
Rep: Reputation: 30
Here is the error mesg.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
5e:83:44:90:20:99:7a:d0:6a:4a:d5:68:86:23:4a:9d.
Please contact your system administrator.
Add correct host key in /home/user1/.ssh/known_hosts to get rid of this message.
Offending key in /home/user1/.ssh/known_hosts:11
RSA host key for 9.1.3.212 has changed and you have requested strict checking.
 
Old 11-19-2009, 03:15 PM   #5
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
Hmmmm it should need to be removed again and again, that machine will only have 1 key.

Do this, run:

Code:
sed -i 11d /home/user1/.ssh/known_hosts
And try again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh issue, Please help LuvdemHeels Red Hat 2 08-27-2007 02:42 PM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 10:25 AM
X over SSH Issue stlpcsolutions Linux - Server 1 11-27-2006 11:08 AM
SSH issue petachi Linux - Newbie 2 04-06-2004 07:57 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 08:17 PM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration