Connection type variable

Darren Tucker dtucker at
Tue Nov 24 10:30:56 EST 2009

Luiz Casey wrote:
> Hello, I would like to know how would I go about in using a
> connection type  variable with the sshd_config.
> Where "sftp/ssh" would be used if the connection is regular ssh
> connection or sftp. So ChrootDirectory/ForceCommand would only be used
> if the connection matches that variable.

I don't understand what you mean by "connection type" or "variable" 
here.  Could you please give an example of a connection that would match 
and one that would not match?

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list