Is it possible to configure Tectia Server 6.1.4 on Windows Server 2003 that way, that different forced commands are triggered if one user connects with different keys? (using public key authentication to trigger commands on server side) E.g. user connects with 1 key and triggers action a, then the same user connects with another key and triggers action b?
Yes, you can use public key options in the
Here's an example
Key key1.pub Options command="command1.exe" Key key2.pub Options command="command2.exe"
Obviously you need to have
There are a number of other options available for public keys besides forced commands. These are documented in the admin guide.
Apparently doesn't work for me.
I have a file authorized_keys:
Key key1.pub Options command="e:\test\a.bat"
The referenced key1.pub resides in the same directory as the authorized_keys file
The path (e:\users\username\Application Data\SSH\Authorization) the authorized_keys file resides in, is configured under "Authentication->Username->Public-Key Authentication->Authorization file"
The used key is valid, i tested connect with it before i configured usage of a authorized_keys file.
When i try and connect, the log-message is: "Could not find the received public key in user's public key authorization file or directory"
answered Feb 12 '10 at 11:03