Re: ssh restrictions (/etc/ssh_config)
- From: Rainer Peter Feller <Rainer-Peter.Feller@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Sep 2007 09:39:56 +0200
On Tue, 2007-09-18 at 12:19 +0100, Martin Simovic wrote:
Hi,Hi,
is there a way to restrict commands passed to ssh (client) to override
command line options
i need to restrict PermitLocalCommand to 'no', even if specified 'yes'
on command line
man ssh_config says
ssh obtains configuration data from the following sources in the follow‐
ing order:
1. command-line options
2. user’s configuration file (~/.ssh/config)
3. system-wide configuration file (/etc/ssh/ssh_config)
so it looks like that /etc/ssh/ssh_config is overridden by command line
argument ssh -o PermitLocalCommand=yes someuser@somehost
thank You,
martin.
this is a question which I asked some yaers ago, and every now and
again ... but without any answer ...
So I made a patch by myself, which I also update with every new release
For the Patch to openssh-4.7p1 see attachment
The name of the not overidable configfile is ssh_config_p
--
H
CUH Rainer Peter Feller
H
Attachment:
openssh-4.7p1-paranoia.patch.bz2
Description: application/bzip
- Follow-Ups:
- Re: ssh restrictions (/etc/ssh_config)
- From: Greg Wooledge
- Re: ssh restrictions (/etc/ssh_config)
- From: Martin Simovic
- Re: ssh restrictions (/etc/ssh_config)
- References:
- ssh restrictions (/etc/ssh_config)
- From: Martin Simovic
- ssh restrictions (/etc/ssh_config)
- Prev by Date: ssh restrictions (/etc/ssh_config)
- Next by Date: Re: ssh restrictions (/etc/ssh_config)
- Previous by thread: ssh restrictions (/etc/ssh_config)
- Next by thread: Re: ssh restrictions (/etc/ssh_config)
- Index(es):
Relevant Pages
|