As sshd service can listen on different ports is it possible to configure a key which will work only if the connection was made on one port, but not the other?
By this I mean that the key appears more than once in the
authorized_keys list and the connection will be permitted if it is made on the port specified in the key.
The idea is to use the same key but with a different
command= and other option to allow the same key to be used for different services.