Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Enable sftp but lock down ssh. Possible?

Discussion in 'General Discussion' started by gfisch, Nov 21, 2006.

  1. gfisch

    gfisch Active Member

    Joined:
    Aug 9, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Montreal
    I have made ssh more and more restrictive, different port, only one user can log in (then su to root).
    But I would like to have my users be able to use sftp.

    I've been testing with giving users jailshell but of course they are not in the "allow" list for sshd.

    Anyone have an idea how to do this?

    Thanks
    Gord in Montreal
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    920
    Likes Received:
    13
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    From a shell they would use sftp -oPort=xx user@host ( where xx is the port number. )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gfisch

    gfisch Active Member

    Joined:
    Aug 9, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Montreal
    Not Allowed

    Thanks kernow,
    But when I try that I get this in /var/log/secure
    Nov 22 20:35:41 server1 sshd[3994]: User gordxx from xxxx.xxx not allowed because not listed in AllowUsers
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice