mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #521] [MERGED] Implement ssh --forward-agent | -x functionality #549
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#549
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/521
Author: @Exhar
Created: 1/22/2025
Status: ✅ Merged
Merged: 2/6/2025
Merged by: @speed47
Base:
master← Head:feature_ssh_agent_forwarding📝 Commits (1)
57a3f33Implement ssh --forward-agent | -x functionality📊 Changes
6 files changed (+107 additions, -2 deletions)
View changed files
📝
bin/shell/osh.pl(+8 -0)📝
doc/sphinx/administration/configuration/bastion_conf.rst(+12 -0)📝
doc/sphinx/presentation/features.rst(+1 -0)📝
etc/bastion/bastion.conf.dist(+6 -1)📝
lib/perl/OVH/Bastion/configuration.inc(+1 -1)➕
tests/functional/tests.d/346-testagentforward.sh(+79 -0)📄 Description
This pull request addresses and resolves issue #252 by implementing the capability to enable SSH agent forwarding during an SSH session, with the egress key added to the agent.
The behavior is controlled by the
sshAddKeysToAgentAllowedconfiguration option in bastion.conf, which is set tofalseby default. When this option is explicitly set totrue, users can request SSH agent forwarding by including either the--forward-agentor-xargument on egress SSH sessions:This enhancement provides users with greater flexibility while maintaining the secure default settings and addresses the exact scenario described in #252.
Tests have been added in its own file, as I couldn't really find a more appropriate location to add the tests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.