Allow Or Deny Selected Users/Groups To Login Via SSH in Linux || Nehra Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

ความคิดเห็น • 19

  • @swetapanwar8740
    @swetapanwar8740 4 ปีที่แล้ว +1

    Please like, share and subscribe 🙏

  • @admin_rajesh
    @admin_rajesh 9 หลายเดือนก่อน +1

    Sir why your subscribers are not getting increase , you really explain all linux issues and topic in correct way .
    I can see many new channels getting more subscriber .

  • @user-bx6vg7fo8e
    @user-bx6vg7fo8e 2 ปีที่แล้ว +1

    Thanks, clear explanation

    • @NehraClasses
      @NehraClasses  2 ปีที่แล้ว

      Glad it was helpful!

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k ปีที่แล้ว

      ​@@NehraClassesSir, muje multiple user allow karne hai but from different ip's. Isko kaise likhenge .
      Match Address ip1
      AllowUsers user1
      Match Address ip2
      AllowUsers user2
      Match Address ip3
      AllowUsers user3
      Is this correct ? Simplified format hai ?

  • @shekharrana1251
    @shekharrana1251 ปีที่แล้ว +1

    Sir very nice ❤❤

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k ปีที่แล้ว

      bro i want to allow only user1 from specific ip rest user from all ip. Im using -
      AllowUsers uesr2 user3
      Match Address my_ip
      AllowUsers user1
      This is not working please help.

  • @yogeshwaranify
    @yogeshwaranify 3 ปีที่แล้ว +1

    Very useful sir

  • @rajus458
    @rajus458 4 ปีที่แล้ว +1

    Thank you its very helpful

  • @bart5293
    @bart5293 2 ปีที่แล้ว +1

    Thank you for video

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k ปีที่แล้ว

      Sir, muje multiple user allow karne hai but from different ip's. Isko kaise likhenge .
      Match Address ip1
      AllowUsers user1
      Match Address ip2
      AllowUsers user2
      Match Address ip3
      AllowUsers user3
      Is this correct ? Simplified format hai ?

  • @PiyushGhosh-l4k
    @PiyushGhosh-l4k ปีที่แล้ว

    Sir, muje multiple user allow karne hai but from different ip's. Isko kaise likhenge .
    Match Address ip1
    AllowUsers user1
    Match Address ip2
    AllowUsers user2
    Match Address ip3
    AllowUsers user3
    Is this correct ? Simplified format hai ?

  • @samiullahsellab7843
    @samiullahsellab7843 2 ปีที่แล้ว

    Hello sir I am Sami from Afghanistan and I have a question: how to create users in ubuntu with SSH access and some of this users allow access and some deny access and write it's script file to allow or deny and then run this script.
    please sir make me a video.

  • @user-bx6vg7fo8e
    @user-bx6vg7fo8e 2 ปีที่แล้ว

    but using both AllowUsers and AllowGroups together is confusing, can you illustrate ?

  • @PiyushGhosh-l4k
    @PiyushGhosh-l4k ปีที่แล้ว

    bro i want to allow user from specific ip. Im using -
    bro i want to allow only user1 from specific ip rest user from all ip. Im using -
    AllowUsers uesr2 user3
    Match Address my_ip
    AllowUsers user1
    This is not working please help.

  • @chrismbah597
    @chrismbah597 2 ปีที่แล้ว

    Thanks for your videos, please for this particular exercise . I wish to say I tried it didn’t work. This is what I did . On redhat 7 I created two virtual machines say sever1 and server2 . Server1 is my local machine where I generate ssh-keygen as root user and I copy the public key now to server2 that I consider as remote machine as root user.
    Then I created user1 user2 and user3 on my local machine called server1 . Here comes the case, using TCP wrappers services. I open the /etc/hosts.allow file to give access to a particular user say user1 to carry ssh service from the local machine to the remote server (server 2)
    In this file here is. My entrance sshd: user1 @IPserver2. Then I restart the sshd daemon . Finally on the server 1
    [root@localhost~] ssh user1@ipserver2
    The output is passwd denied

    • @chrismbah597
      @chrismbah597 2 ปีที่แล้ว

      But if I use root user to ssh it works.
      Regarding the ssh service and for network service as you did in your previous video my works