How to configure sftp to only accept connections from a different port than ssh connections

Solution Verified - Updated -

Issue

By default sftp connections use the same port that ssh connections use. You need to configure the sshd_config file to force sftp connections to use a port different from the ssh connections.

Environment

Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In