From: martin f. krafft Date: Tue, 22 Mar 2022 19:33:04 +0000 (+0100) Subject: Lose --fqdn from hostname call because of MacOSX stupidity X-Git-Url: https://git.madduck.net/etc/offlineimap.git/commitdiff_plain/dd6213ccf35e3030d380863fdf4ad05e795613f2?ds=sidebyside Lose --fqdn from hostname call because of MacOSX stupidity --- diff --git a/.offlineimap/preauthtunnel.sh b/.offlineimap/preauthtunnel.sh index f70433b..56753b2 100755 --- a/.offlineimap/preauthtunnel.sh +++ b/.offlineimap/preauthtunnel.sh @@ -7,7 +7,7 @@ SSH_KEY="$HOME/.offlineimap/${REMOTE_HOST}.ssh-seckey" SSH_OPTIONS="command=\"$IMAP_COMMAND\",no-agent-forwarding,no-X11-forwarding,no-port-forwarding,no-pty" if [ ! -f "$SSH_KEY" ]; then - ssh-keygen -f "$SSH_KEY" -C "OfflineIMAP from $(hostname --fqdn)" -N '' -t ed25519 + ssh-keygen -f "$SSH_KEY" -C "OfflineIMAP from $(hostname)" -N '' -t ed25519 COMMAND="echo '$SSH_OPTIONS $(cat "$SSH_KEY.pub")' >> .ssh/authorized_keys" ssh -F ~/.offlineimap/ssh_config -o ControlPath=none -o IdentityAgent=SSH_AUTH_SOCK \ ${REMOTE_HOST} "$COMMAND"