Fix function to generate certificate on remote machine (ks-up*)
This commit is contained in:
parent
1682255e62
commit
f84e808df3
|
@ -402,9 +402,7 @@ function gen_pem_ssh() {
|
|||
userhost="${USER}"
|
||||
name_host="${HOSTNAME}"
|
||||
echo "" && echo "* Generating .pem file to connect to this machine (${userhost})."
|
||||
ssh-keygen << EOF
|
||||
${userhost}
|
||||
EOF
|
||||
echo -e "${userhost}\n\n\n" | ssh-keygen
|
||||
mv ${userhost} ${userhost}-${name_host}.pem
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
|
|
@ -429,9 +429,7 @@ function gen_pem_ssh() {
|
|||
userhost="${USER}"
|
||||
name_host="${HOSTNAME}"
|
||||
echo "" && echo "* Generating .pem file to connect to this machine (${userhost})."
|
||||
ssh-keygen << EOF
|
||||
${userhost}
|
||||
EOF
|
||||
echo -e "${userhost}\n\n\n" | ssh-keygen
|
||||
mv ${userhost} ${userhost}-${name_host}.pem
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
|
|
@ -306,9 +306,7 @@ function gen_pem_ssh() {
|
|||
userhost="${USER}"
|
||||
name_host="${HOSTNAME}"
|
||||
echo "" && echo "* Generating .pem file to connect to this machine (${userhost})."
|
||||
ssh-keygen << EOF
|
||||
${userhost}
|
||||
EOF
|
||||
echo -e "${userhost}\n\n\n" | ssh-keygen
|
||||
mv ${userhost} ${userhost}-${name_host}.pem
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
|
|
@ -402,9 +402,7 @@ function gen_pem_ssh() {
|
|||
userhost="${USER}"
|
||||
name_host="${HOSTNAME}"
|
||||
echo "" && echo "* Generating .pem file to connect to this machine (${userhost})."
|
||||
ssh-keygen << EOF
|
||||
${userhost}
|
||||
EOF
|
||||
echo -e "${userhost}\n\n\n" | ssh-keygen
|
||||
mv ${userhost} ${userhost}-${name_host}.pem
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
|
Loading…
Reference in New Issue
Block a user