linux - Separate SSH and SFTP -


is possible separate ssh , sftp?

for example, have sftp listening on port 22 , ssh on port 2222?

i have separated list of sftp , ssh users, goal allow sftp users connect on port 22, , make ssh listening on higher port such 2222.

as both part of ssh not find way achieve this.

thanks in advance!

the other questions correct, can set single instance of openssh listen on both ports , handle sftp connection on 1 , ssh connections on other:

port 22 port 2222 match localport 22     subsystem sftp internal-sftp     chrootdirectory /sftp/root/dir     allowtcpforwarding no     x11forwarding no     forcecommand internal-sftp 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -