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.

Enable sftp but lock down ssh. Possible?

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

  1. gfisch

    gfisch Member

    Joined:
    Aug 9, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    From a shell they would use sftp -oPort=xx user@host ( where xx is the port number. )
     
  3. gfisch

    gfisch Member

    Joined:
    Aug 9, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    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