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
Post a Comment