Re: authorized_keys with command= option
From: sam (sam++_at_--.com)
Date: 05/04/05
- Previous message: Richard E. Silverman: "Re: authorized_keys with command= option"
- In reply to: Richard E. Silverman: "Re: authorized_keys with command= option"
- Next in thread: Richard E. Silverman: "Re: authorized_keys with command= option"
- Reply: Richard E. Silverman: "Re: authorized_keys with command= option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 04 May 2005 10:07:59 +0800
Richard E. Silverman wrote:
>>>>>>"sam" == sam <sam++@--.com> writes:
>
>
> sam> no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="scp
> sam> -p -f /usr/local/etc/",from="192.168.1.1"
>
> This is not how scp works; see:
>
> http://www.snailbook.com/faq/restricted-scp.auto.html
>
Thhis reference is not in detail, and only described a little further in
SSH1. I m using version of SSH > 2.
However I managed to dicovered what the scp commandline is interpreted
by the remote host. It is scp -p -t dir as translated by the remote host.
I read some where that I can define regular expression in the command=
option line. But I m not sure how to do so. I want to define something
as follow:
command="scp -p -t (/usr/local/etc/*|/etc/)"
or
command="scp -p -t (*/etc/*)"
Thanks
Sam
- Previous message: Richard E. Silverman: "Re: authorized_keys with command= option"
- In reply to: Richard E. Silverman: "Re: authorized_keys with command= option"
- Next in thread: Richard E. Silverman: "Re: authorized_keys with command= option"
- Reply: Richard E. Silverman: "Re: authorized_keys with command= option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|