LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-28-2010, 10:50 AM   #1
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 52

Rep: Reputation: 15
Question How to give the permission to SSH?


Hi there,

I setup a new Linux box and it's called:

Code:
name@it.nvl.com
When I try to log on from another machine using

Code:
% ssh name@it.nvl.com
It returns:

Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
a1:87:77:4f:cc:13:d3:d5:d6:b5:d1:e3:05:d0:f8:46.
Please contact your system administrator.
Add correct host key in /it/name/.ssh/known_hosts to get rid of this message.
Offending key in /it/name/.ssh/known_hosts:25
RSA host key for darknight.cs.ucl.ac.uk has changed and you have requested strict checking.
Host key verification failed.
May I ask how to give the permission to other machine like name2@it.nvl.com that can log on to name@it.nvl.com via SSH?

Thanks.
 
Old 07-28-2010, 11:02 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
It seems your rsa key is corrupt.

clean rsa key from file (~/.ssh/known_hosts) and connect once again it will resolve issue.

cat > ~.ssh/known_hosts (/it/name/.ssh/known_hosts As per warning message)

PRESS CTRL+D to save

now connect ssh server it will ask to save rsa key.

HTH

Last edited by sem007; 07-28-2010 at 11:04 AM.
 
Old 07-28-2010, 11:07 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,333

Rep: Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891Reputation: 3891
Quote:
Originally Posted by ggyyree View Post
Hi there,

I setup a new Linux box and it's called:
Code:
name@it.nvl.com
When I try to log on from another machine using
Code:
% ssh name@it.nvl.com
It returns:
Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
a1:87:77:4f:cc:13:d3:d5:d6:b5:d1:e3:05:d0:f8:46.
Please contact your system administrator.
Add correct host key in /it/name/.ssh/known_hosts to get rid of this message.
Offending key in /it/name/.ssh/known_hosts:25
RSA host key for darknight.cs.ucl.ac.uk has changed and you have requested strict checking.
Host key verification failed.
May I ask how to give the permission to other machine like name2@it.nvl.com that can log on to name@it.nvl.com via SSH?

Thanks.
Either the key is corrupt, or the host name/IP address of the box changed. Did you read the line in your post:
Code:
Add correct host key in /it/name/.ssh/known_hosts to get rid of this message.
You can blank out the file, or just edit it and remove the offending line, that references that one host.
 
Old 07-29-2010, 09:49 AM   #4
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 52

Original Poster
Rep: Reputation: 15
That works. Thanks
 
Old 07-29-2010, 09:52 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Please mark your thread as SOLVED - under Thread Tools.
Thanks,
 
  


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
How can i give ftp permission to 2 or any more folders? epamuk Linux - General 2 12-28-2009 04:22 PM
How can i give permission for see a folder contents? epamuk Linux - General 1 09-23-2009 11:03 AM
What Does Each Group Give Permission To? Do7AN Slackware 6 02-14-2007 03:48 AM
How to give permission to /home partition Micro420 Linux - General 3 05-09-2005 06:49 PM
How to give permission to DVD-ROM? Micro420 Mandriva 19 01-21-2004 02:41 PM


All times are GMT -5. The time now is 05:10 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