Ok, my Google Fu has failed me. I can't find the answer to this one on the web. I turn to Tek-Tips seeking an answer.
The question came up here at work, what goes into the creation of an SSH public key? IP? Hostname? Hostid? Something else?
That is, if I create a public key on one machine, say with an IP address of 10.1.1.23, but then the machine crashes and burns and we bring in fresh hardware, fresh OS install, but it's set up with the same IP address, will my old public key still work? That is assuming that I've restored my matching private key from backup.
In other words, is the only thing that needs to match are a ssh-keygen generated private and public key pair? Or, does a changing IP affect it? Other system changes?
The background on this is that when creating an Amazon EC2 instance, you get an ephemeral IP address that can change when you create an instance. We're trying to pre-share SSH keys to automate certain set-up things, but we're having trouble getting a key to work. Just wondering what goes into creating the public key to try to find a solution.
The question came up here at work, what goes into the creation of an SSH public key? IP? Hostname? Hostid? Something else?
That is, if I create a public key on one machine, say with an IP address of 10.1.1.23, but then the machine crashes and burns and we bring in fresh hardware, fresh OS install, but it's set up with the same IP address, will my old public key still work? That is assuming that I've restored my matching private key from backup.
In other words, is the only thing that needs to match are a ssh-keygen generated private and public key pair? Or, does a changing IP affect it? Other system changes?
The background on this is that when creating an Amazon EC2 instance, you get an ephemeral IP address that can change when you create an instance. We're trying to pre-share SSH keys to automate certain set-up things, but we're having trouble getting a key to work. Just wondering what goes into creating the public key to try to find a solution.