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

Thread: Jail SSH

  1. #1
    Join Date
    Apr 2013
    Beans
    46

    Jail SSH

    Hello, Im new at linux and Im trying to deny any user intertact when he's connected into my server SSH. I just want display some information on SSH Terminal, but if the user press ctrl + C, it closes my bash script. The point is, I want remove all users permission so he cant "stop" my bash. Thank you.

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Jail SSH

    But you do want to allow users to connect by SSH?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Apr 2013
    Beans
    46

    Re: Jail SSH

    Yea, they are connecting normally, my bash is running for every user! I just want to 'freeze' this interaction with shell.

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Jail SSH

    What is the purpose of allowing them SSH access?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Apr 2013
    Beans
    46

    Re: Jail SSH

    SSH Tunneling

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Jail SSH

    Quote Originally Posted by pedrommone View Post
    SSH Tunneling
    Thought so.

    http://ubuntuforums.org/showthread.php?t=1809338
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Apr 2013
    Beans
    46

    Re: Jail SSH

    Do you know something can help me?

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Jail SSH

    Quote Originally Posted by pedrommone View Post
    Do you know something can help me?
    In the link I posted above there are three different ways to control what a user has access to. I have an application that I run headless but sometimes I need to access a GUI for it via SSH, so I use a shell script for the user's shell.

    Otherwise check this page out, which uses rbash:
    http://www.ab-weblog.com/en/creating...unneling-only/
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #9
    Join Date
    Apr 2013
    Beans
    46

    Re: Jail SSH

    Currently Im using pam-mysql for user authentication, it will work for it too?

  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Jail SSH

    Quote Originally Posted by pedrommone View Post
    Currently Im using pam-mysql for user authentication, it will work for it too?
    I haven't tried that configuration before. Does that mean your users are stored in a database?

    If so, this might help (maybe).
    http://www.spencerstirling.com/compu...mysqluser.html

    You would just need to change whatever shell the user you are allowing to tunnel is using.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 1 of 2 12 LastLast

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
  •