OpenSSH and Key Pair Generation

2021-06-11 Thread Christopher Johns
Good Evening,

Recently it has been brought to my attention that we may have several Linux
hosts that may have the same problem ssh-rsa key pairs.

Is it possible if I use a server template to create Linux servers, for
OpenSSH to create the same host keys in /etc/ssh for the servers created by
my template?

Also, how does OpenSSH create the key pairs, by some random process called
when OpenSSH is installed or when the new server is booted for the first
time?

Thank you for your time and I look forward to hearing from you soon.

Regards,

Chris Johns
UNIX-Linux Systems Administrator


OpenSSH and Key Pair Generation

2021-06-11 Thread Christopher Johns
Good Evening,

Recently it has been brought to my attention that we may have several Linux
hosts that may have the same problem ssh-rsa key pairs.

Is it possible if I use a server template to create Linux servers, for
OpenSSH to create the same host keys in /etc/ssh for the servers created by
my template?

Also, how does OpenSSH create the key pairs, by some random process called
when OpenSSH is installed or when the new server is booted for the first
time?

Thank you for your time and I look forward to hearing from you soon.

Regards,

Chris Johns
UNIX-Linux Systems Administrator


Why regex doesn't work in while loop's condition?

2019-09-06 Thread JohnS
Hi, all!

Why next construction doesn't work?

read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done

I tried many variants but can't make it work. Moreover I don't understand WHY it
doesn't work?!

Thanks!