Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Montreal
    Posts
    24

    Default Enable sftp but lock down ssh. Possible?

    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. #2
    Member
    Join Date
    Jul 2004
    Posts
    495

    Default

    From a shell they would use sftp -oPort=xx user@host ( where xx is the port number. )

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    Montreal
    Posts
    24

    Default 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

Similar Threads & Tags
Similar threads

  1. Unable to login via SSH or SFTP
    By scorched in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-29-2010, 11:54 PM
  2. how to disable ssh and keep sftp working
    By konrath in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2009, 11:45 AM
  3. Server lost SSH and SFTP
    By madmac in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-19-2005, 03:53 PM
  4. SFTP/SSH really concerns me! Security!
    By mr.wonderful in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-14-2004, 06:29 AM
  5. Replies: 34
    Last Post: 06-06-2003, 04:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube