tilde doesn't expand in quotes

This commit is contained in:
redbeardymcgee 2024-11-02 13:19:22 -05:00
parent 63cad56836
commit 9f5acb12f4

View file

@ -35,7 +35,7 @@ and ssh clients.
dnf install openssh-server dnf install openssh-server
## Generate strong key on your laptop or workstation/desktop ## Generate strong key on your laptop or workstation/desktop
ssh-keygen -t ed25519 -a 32 -f "~/.ssh/$localhost-to-$remotehost" ssh-keygen -t ed25519 -a 32 -f ~/.ssh/"$localhost-to-$remotehost"
## Copy key to AlmaLinux ## Copy key to AlmaLinux
ssh-copy-id -i ~/.ssh/"$localhost-to-$remotehost" "$user@$remotehost" ssh-copy-id -i ~/.ssh/"$localhost-to-$remotehost" "$user@$remotehost"