The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH Password Authentication Tweak Disables SFTP

Discussion in 'Security' started by markb14391, Jul 16, 2014.

  1. markb14391

    markb14391 Well-Known Member

    Joined:
    Jun 9, 2008
    Messages:
    305
    Likes Received:
    2
    Trophy Points:
    18
    Hi,

    We want to offer SFTP to our users. And we want to use the SSH password authentication tweak for security (only allowing key-based access).

    But, of course, when we activate the SSH password tweak, it also disables SFTP access.

    Is there a workaround?

    Of course we could allow password access with no root access (wheel user escalate to root), but we'd rather not.

    Any ideas?

    Thanks!

    Mark
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Filezilla supports use of private keys. Import your private key in the filezilla settings, and when you use SFTP just leave the password blank.

    If you don't want to do that, you could enable pw auth, but set the ssh permitrootlogin setting to "without-password" which allows only key based logins for root.
     
  3. markb14391

    markb14391 Well-Known Member

    Joined:
    Jun 9, 2008
    Messages:
    305
    Likes Received:
    2
    Trophy Points:
    18
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page