Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 06:47 AM
06-10-2008 06:47 AM
I have quite a number of servers (HP-UX, Solaris & Linux) which I access via a Linux hopping station which I can ssh straight into without the task of having to enter a password.
Today I built a new server and experienced difficulty ssh'ing onto it from my hopping station. I used the same key as I had used on all the other servers. So I generated a new key from my hopping station and placed it in the authorized_keys file of my new server i.e.
# ssh-keygen -t dsa -N ""
Some time after this I noticed that any other server I try to ssh onto prompts me for the password. Can someone confirm if this is what has happened and if there is a quick way of rectifying this?
Rgds,
D
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 06:58 AM
06-10-2008 06:58 AM
Re: SSH Keys
You might be able to find what you are looking for on this post:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1226880
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 07:46 AM
06-10-2008 07:46 AM
Re: SSH Keys
to me this is a common occurance when I unleash a new set of servers where I usually copy the user id's from the old machine to the new machine, along with the ssh keys. Since we have a 90 day password lifetime, at the end of the 90 day period (from the date of the source system's password change) all of these servers will deny no-passphrase login attempts from ssh connection.
if you have a telnet connection, most probably it will work and let you login interactively and let you change your password as you login.
Just my guess. Take it with a grain of salt and hope it helps.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 10:18 AM
06-10-2008 10:18 AM
Re: SSH Keys
with all the old servers. Then you
"generated a new key" on your Linux system.
And now, things don't work as before on the
old servers.
It sounds to me as if you changed the key
files on your Linux system, and you didn't
tell your old servers about the new keys.
Why _wouldn't_ this break things on the old
servers?
Why didn't you copy the old key file(s) to
the new server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2008 10:13 PM
06-10-2008 10:13 PM
SolutionYou may inadvertently have overwritten your previous key pair thus by having confirmed with CR.
That would be bad because you now would have to distribute the new public key to all your other remote targets (if you haven't got a backup).
Remember to either use the -i option with your ssh client to specify which identity file (i.e. private key) to use for your current ssh target.
Or, to ease typing/remembering, edit in your the file $HOME/.ssh/config and use "Host" stanzas along with the "IdentityFile" directive whose value has to be the path to the private key required to login on that host.
Please, have a look at man ssh_config for details and explanation of a myriad of other viable ssh client options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 12:15 AM
06-11-2008 12:15 AM
Re: SSH Keys
Steven, "Why didn't you copy the old key file(s) to the new server?" - I did but this is where I encountered the issue as it didn't work (I'll get back to this in a second). Anyway, my main pitfall was I didn't realise that the new key gen would overwrite the current keys; lesson learned eh?
Once I recovered the public and private keys from backup, problem resolved.
So back to my original issue - I copied the old key file from my hopping station to the newly build server (/root/.ssh/authorized_keys) but get the following error:
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
1b:69:cf:74:82:0c:68:12:e2:54:ec:6d:95:c9:8a:fb.
Please contact your system administrator.
I have removed the entry on the known_hosts file on the hopping station but still no joy, any ideas?
Thanks,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 05:22 AM
06-11-2008 05:22 AM
Re: SSH Keys
Better than just deleting the line you should compare the fingerprints.
If you still get access to the remote host (or ask the admin there) you could there issue e.g.
ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
Then compare with the offending entry in your file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2008 08:11 AM
06-11-2008 08:11 AM
Re: SSH Keys
Exactly _which_ key files did you copy,
whence and whither? You should probably not
be copying host key files around, only your
own key files. You _make_ new host key files
on a new server.
> [...] the RSA host key has just [...]
This is a complaint about a server's host
key data, not about your personal key data.