Results 1 to 12 of 12
  1. #1
    Join Date
    Aug 2002
    Posts
    259

    how to give ssh access

    Hi,

    How to give SSH acces to users?

    Can you provide the command to do that?

    Thanks
    Stephen

  2. #2
    Join Date
    May 2001
    Location
    Prince Edward Island
    Posts
    964
    try ssh-add
    [url]I got nothing/url]

    For clarity's sake, don't use "<ip address of hostname>" use the ACTUAL 32-bit numeric IP address of the machine.

  3. #3
    Join Date
    Aug 2002
    Location
    London, UK
    Posts
    9,037
    edit the shell type next to the username in /etc/passwd

    give them /bin/bash instead onf /sbin/nologin

    or something similar to that ?
    Matt Wallis
    United Communications Limited
    High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
    UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

  4. #4
    Join Date
    Sep 2001
    Location
    Madras
    Posts
    738
    As su
    usermod -s /bin/bash username in Linux

    in FreeBSD

    RTFM -> man pw!

    nto a good idea to edit /etc/passwd
    Offering Managed Servers - for an exclusive clientèle who value uptime, caring support and superior technology.

  5. #5
    Join Date
    Aug 2002
    Location
    London, UK
    Posts
    9,037
    just out of interest, why is it a bad idea to edit /etc/passwd ?
    i may have to stop doing this myself if there are any serious drawbacks.
    Matt Wallis
    United Communications Limited
    High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
    UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

  6. #6
    Join Date
    Aug 2000
    Location
    Tacoma, Washington
    Posts
    9,576
    on a cpanel/redhat server:

    ADD: chsh -s /bin/bash client_username
    REMOVE: chsh -s /usr/local/cpanel/bin/noshell client_username
    Former Webhost... now, just a guy.

  7. #7
    Join Date
    Jun 2000
    Location
    Washington, USA
    Posts
    5,991

    Cool

    Originally posted by UH-Matt
    just out of interest, why is it a bad idea to edit /etc/passwd ?
    i may have to stop doing this myself if there are any serious drawbacks.
    You shouldn't edit the file directly, because in the event that something else goes to write to it. You'll cause a write collide, which could corrupt the file.

  8. #8
    Join Date
    Aug 2002
    Posts
    259

    hi

    Hi,

    What is the exact command to give acces to SSH for my
    users.

    is it the only way to edit /etc/password?


    Thanks

  9. #9
    Join Date
    Aug 2000
    Location
    Tacoma, Washington
    Posts
    9,576
    what are you running on your server?

    Greg Moore
    Former Webhost... now, just a guy.

  10. #10
    Join Date
    Aug 2002
    Posts
    259

    hi

    I am running mandrake 2.4.18

  11. #11
    Join Date
    Jul 2001
    Location
    Boston
    Posts
    354
    Have you installed SSH?

  12. #12
    Join Date
    Aug 2002
    Posts
    259

    hi

    Yes,

    I have installed SSH.


    Thanks

Posting Permissions

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