Sftp virtualhosting based on the SNI server name?

2

0

I am thinking on the possibility of the virtualhosting of sftp based on the server name, which was given by the client with SNI. Is it possible? Does any similar already exist there?

peterh - Reinstate Monica

Posted 2014-06-16T15:45:50.877

Reputation: 2 043

Answers

3

SNI is an extension of the TLS (SSL) protocol. SFTP does not use TLS as transport protocol, but uses SSH, thus SNI is not available.

You can of course change the content of the SFTP server based on the credentials provided (and chroot the environment).

mtak

Posted 2014-06-16T15:45:50.877

Reputation: 11 805