Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: SSH and restricted shell

  1. #1

    SSH and restricted shell

    I'vbe created a restricted shell for the user on teh RH7.2 box in order for remote admins to log in and to be presented only with menu to check NTP status.
    I can login as that user locally (or loging as root and then su to that user), all using SSH.
    But when I try to SSH to that box and use the user that has restricted shell, then I cannot login (ssh authentication fails)

    User in question was created like that ' useradd ntpuser -s /bin/ntpshell

    Any ideas why this is happening?

    Thank you.

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:SSH and restricted shell

    hmm, I am presuming that you created a custom shell environment, right? I mean there, a command that is run instead of /bin/bash . Well I would try looking at the logs and see what exactly is causing it to barf out.

  3. #3

    Re:SSH and restricted shell

    I started telnet server on the same box and I was able to telnet to it with the username and get restricted shell, I cannot do it using SSH. (but I can ssh as root)
    Nothing in the logs besides 'sesison opened for <username>, session closed for <username>

    ???

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:SSH and restricted shell

    check your configuration for sshd then.

  5. #5

    Re:SSH and restricted shell

    What should I be looking for?

  6. #6

    Re:SSH and restricted shell

    I've tried to ssh from the other box and I could, so I guess the problem is with my own box, BUT:
    From my box I can login as root, but cannot login as regular user, is there anything in SSH that remembers that i've logged it from specific workstation as root and it doesn't allow to swith user?
    (It's a stupid suggection, but I don't know what ot think...)

  7. #7

    Re:SSH and restricted shell

    The problem was with Terminal Emulation I use - secureCRT, you should switch the username in the profile, if you do that on the fly in the login box it doesn't work, geez, and SecureCRT is a commercial product.
    Sorry I've wasted your time on this. :-\

  8. #8
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:SSH and restricted shell

    [quote author=elovkoff link=board=1;threadid=6638;start=0#62520 date=1048292918]
    Sorry I've wasted your time on this. :-\
    [/quote]

    Hehe, dont worry -- I am unemployed -- I have lotsa time ;D

  9. #9

    Re:SSH and restricted shell

    Hey Andrew, do you live near Massachusetts? We are going to be hireing another UNIX/Linux admin soon. I can get you in here, no prob.

  10. #10
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:SSH and restricted shell

    Hehe, unfortunately no. Milwaukee ;D

    And I would take you up on the offer if I had the $$$ to move.

    Thanks for the consideration ;D

    BTW you did get my email right?

Similar Threads

  1. Slackware Shell
    By vern in forum Linux - General Topics
    Replies: 38
    Last Post: 12-16-2004, 01:25 AM
  2. restricted shell (recovery) help
    By in forum Linux - General Topics
    Replies: 7
    Last Post: 01-12-2003, 02:21 AM
  3. shell access?
    By Rastar in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 01-03-2003, 08:13 PM
  4. PHP in shell
    By xin in forum Linux - Software, Applications & Programming
    Replies: 11
    Last Post: 07-22-2002, 08:20 PM
  5. My Dos shell
    By kenshi in forum Linux - Software, Applications & Programming
    Replies: 24
    Last Post: 11-29-2001, 11:10 PM

Bookmarks

Posting Permissions

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