Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I have sshd on a linux box. I have 2 users 1)ramsam 2) filetp both these users can ssh into the box but i need to restrict filetp user from ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    5

    Exclamation sshd

    I have sshd on a linux box.

    I have 2 users
    1)ramsam 2) filetp

    both these users can ssh into the box
    but i need to restrict filetp user from sshing but filetp needs to be able to ftp

    I tried to put the entry AllowUsers/DenyUsers in the sshd_config file and restarted the service.

    It dosent seem to work.

    Please help !!!

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    I have
    Code:
    AllowUsers ramsam
    DenyUsers filetp
    in my server's /etc/ssh/sshd_config file.

    This works on Debian Etch.

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Posts
    5
    Hey GNU-Fan
    I am on uBuntu ver 7.10

    I did
    AllowUsers ramsam
    DenyUsers filetp

    in the /etc/ssh/sshd_conf FILE
    and restarted sshd

    It does not resolve my issue.
    filetp user still can log in.

  4. #4
    Linux Newbie Geeth's Avatar
    Join Date
    Apr 2008
    Location
    Brisbane Aus
    Posts
    176
    have you restarted the ssh daemon?

  5. #5
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    You may want to have a look at rssh which is a restricted ssh shell
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  6. #6
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    I do not think switching to rssh would be such a good idea here before the problem with OpenSSHD is solved.

    SSHD can be configured to not allow logins and if it, for whatever reason, does not work, this program might be even be broken/corrupted. A misconfigured SSHD is a serious issue and if it shows other than expected behaviour you had better find the cause.

  7. #7
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    It may not be the source of your problem, but for good measure did you turn off protocol 1 logins in sshd_config (only allow protocol 2)? And did you delete ~filetp/.ssh/known_hosts??
    Can't tell an OS by it's GUI

  8. #8
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    IMO, there are two configs reagrding ssh
    sshd_config and ssh_config
    try ssh_config.

  9. #9
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    But ssh_config configures only the client while this is a server issue, isn't it?

  10. #10
    Just Joined!
    Join Date
    Jul 2008
    Posts
    5

    Question Reply

    have you restarted the ssh daemon?
    Yes I restarted ssh but allow and deny dosent work
    I even rebooted the box still not working.


    You may want to have a look at rssh which is a restricted ssh shell
    rssh I will look at but sshd should work coz its jsut adding 2 lines. RSSH will be my next tool to tinker with.



    did you turn off protocol 1 logins in sshd_config (only allow protocol 2)? And did you delete ~filetp/.ssh/known_hosts??

    I left the sshd_config as default but I dont know what protocol was on.


    IMO, there are two configs reagrding ssh
    sshd_config and ssh_config
    try ssh_config.

    ssh_config i believe there was nothing in there or i may be wrong.
    Need to check it. Dont have access to the system right now.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...