Skip to content

Commit

Permalink
allow execute of ssh-keygen command on the proxy to cleanup ssh known…
Browse files Browse the repository at this point in the history
…_hosts
  • Loading branch information
mcalmer committed Sep 12, 2024
1 parent fbbf10a commit 0ac46e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/proxy/mgr-proxy-ssh-force-cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set -- $SSH_ORIGINAL_COMMAND
cmd="$1"
shift
case "$cmd" in
'/usr/bin/scp'|'/usr/bin/ssh'|'cat') exec "$cmd" "$@" ;;
*) echo "ERROR: command not allowed" ;;
esac
'/usr/bin/scp'|'/usr/bin/ssh'|'cat'|'/usr/bin/ssh-keygen') exec "$cmd" "$@" ;;
*) echo "ERROR: command not allowed" >&2; exit 1 ;;
esac
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- allow execute of ssh-keygen command on the proxy to cleanup ssh known_hosts (bsc#1228345)

0 comments on commit 0ac46e8

Please sign in to comment.