LinuxQuestions.org
Visit Jeremy's Blog.
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 04-15-2009, 07:29 PM   #1
lehe
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
ssh -X problem


Hi, I have been using ssh -X to connect to a server and use its Matlab in graphical mode. But sometimes I can, sometimes not.
The connection info right before failing to get graphical mode is:
Quote:
ssh -X lehe@hostname
Warning: the RSA host key for 'hostname' differs from the key for the IP address 'xxx'
Offending key for IP in /home/lehe/.ssh/known_hosts:1
Matching host key in /home/lehe/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)?
Can someone please tell me why and how to do correctly?
Is it related to the fact that sometimes I have several connections to the same server?
Thanks and regards!

Last edited by lehe; 04-15-2009 at 07:31 PM.
 
Old 04-15-2009, 09:49 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,356

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
my guess,

"... you have an ssh problem. What has happened is that the ssh key for the machine you are connecting to has changed since the last time you connected to it, and ssh is trying to protect you from corrupted machines. If you trust that the machine you are connecting to is the same machine, then you need to edit ~/.ssh/known_hosts and remove the line beginning with the offending machine's name. Be careful NOT to change any of the other lines in the file."

Dhcp may be the issue. Set lease times very long or forever on that machine.
 
  


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
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
SSH problem - ssh-add not respond FerkoPica Linux - Security 6 05-07-2006 03:47 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
ssh problem after creating an ssh alias. porotothorpe Linux - General 2 01-25-2006 07:56 PM


All times are GMT -5. The time now is 12:02 AM.

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