Re-order SSH key types to make ed25519 default
- Fixes: #981 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -109,11 +109,11 @@ data from other structures.
|
||||
|
||||
### SSH
|
||||
- Key types:
|
||||
- ed25519
|
||||
- ecdsa
|
||||
- rsa
|
||||
- dsa
|
||||
- ecdsa
|
||||
- ed25519
|
||||
- First key type: rsa
|
||||
- First key type: ed25519
|
||||
|
||||
## Node
|
||||
|
||||
|
||||
@@ -313,7 +313,7 @@ Filename: etc/profile.d/ssh_setup.csh
|
||||
if ( ( $_UID > 500 || $_UID == 0 ) && ( ! -f "$HOME/.ssh/config" && ! -f "$HOME/.ssh/cluster" ) ) then
|
||||
echo "Configuring SSH for cluster access"
|
||||
install -d -m 700 $HOME/.ssh
|
||||
ssh-keygen -t rsa -f $HOME/.ssh/cluster -N '' -C "Warewulf Cluster key" >& /dev/null
|
||||
ssh-keygen -t ed25519 -f $HOME/.ssh/cluster -N '' -C "Warewulf Cluster key" >& /dev/null
|
||||
cat $HOME/.ssh/cluster.pub >>! $HOME/.ssh/authorized_keys
|
||||
chmod 0600 $HOME/.ssh/authorized_keys
|
||||
|
||||
@@ -347,7 +347,7 @@ Filename: etc/profile.d/ssh_setup.sh
|
||||
if [ $_UID -ge 500 -o $_UID -eq 0 ] && [ ! -f "$HOME/.ssh/config" -a ! -f "$HOME/.ssh/cluster" ]; then
|
||||
echo "Configuring SSH for cluster access"
|
||||
install -d -m 700 $HOME/.ssh
|
||||
ssh-keygen -t rsa -f $HOME/.ssh/cluster -N '' -C "Warewulf Cluster key" > /dev/null 2>&1
|
||||
ssh-keygen -t ed25519 -f $HOME/.ssh/cluster -N '' -C "Warewulf Cluster key" > /dev/null 2>&1
|
||||
cat $HOME/.ssh/cluster.pub >> $HOME/.ssh/authorized_keys
|
||||
chmod 0600 $HOME/.ssh/authorized_keys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user