How to SSH Login Without a Password on a Linux Server | Linux SSH Tutorial Part-2

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • #linux #mprashant #ssh
    Hello dosto,
    In this video I have covered about SSH in Linux
    How you can setup the SSH to login into a Linux server and Accessing a Linux server remotely without any password.
    We will going to use below two SSH commands
    - ssh-keygen
    - ssh-copy-id
    ===========
    SSH or Secure Shell is a
    network communication protocol that enables two computers/devices to communicate and share data.
    ssh
    secure shell
    secure shell tutorial
    ssh tutorial
    what is ssh
    secure shell explained
    ssh client
    linux ssh
    ssh secure shell
    learn ssh
    ssh tutorial linux
    linux tutorial
    openssh tutorial
    beginners guide to ssh
    guide to ssh
    connecting to remote servers with ssh
    learn ssh in
    connection with ssh
    what is ssh in linux
    how to use ssh
    how to access remote linux server
    access linux server
    linux server access with ssh
    example of ssh
    default port of ssh

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

  • @raghukumar8184
    @raghukumar8184 9 หลายเดือนก่อน +4

    u saved my life ; i cant explain y and how but u literally save me ..... God bless u

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน

      Glad it helped and thank for the wish😊

  • @seenivasantamilmani9944
    @seenivasantamilmani9944 3 หลายเดือนก่อน +2

    Thank you so much sir.. Very helpful in my career

    • @MPrashant
      @MPrashant  3 หลายเดือนก่อน

      Most welcome!!

  • @VibhutiJain
    @VibhutiJain 5 หลายเดือนก่อน +1

    Thank You For this wonderful session. Really Liked it

    • @MPrashant
      @MPrashant  5 หลายเดือนก่อน

      Glad you enjoyed it!

  • @abhishekagarwal3657
    @abhishekagarwal3657 10 หลายเดือนก่อน +1

    seriously this is so helpful, thanks ;)

    • @MPrashant
      @MPrashant  10 หลายเดือนก่อน

      Welcome!

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

    very nice explaination. thanks . though i have read it in one webpage i liked video. Is there any video related to proxypass?

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Thanks for the feedback!

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

    Great sir very helpful 🙏

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

    very helpful for me

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

    Nice

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

    Hi Brother I tried each and every steps of this tutorial but still asking for password while doing ssh…Pls do the needful…Thanks!

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

    So Splendid sir

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

      Many many thanks

    • @amitkrmandal9974
      @amitkrmandal9974 ปีที่แล้ว

      Sir Mera background account se hai . But mai Linux and AWS Aur Networking complete hai . Mujhe samjh nahi aata hai mai kisme jau .

    • @amitkrmandal9974
      @amitkrmandal9974 ปีที่แล้ว

      Practice bhi acha hai . Aapka jitna bhi video Maine dekha Sab mujhe aata hai . Kuchh kuchh chije mere najar se rah gaya tha. Maine aapke channel se different method se khud ko update Kiya. Kaise job switch karu

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

    Great brother 👍🏻

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

      Thanks ✌️

  • @funn-onn-funn
    @funn-onn-funn 11 หลายเดือนก่อน +1

    When I am doing it showing pub key gassip key gassip-mic denied

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

    Hi
    i am able to do ssh in linux from server1 to server2 but not able to do viceversa ? Even after entering right password showing permission denied.
    What should I do to solve it

    • @Sialuckyaadoo
      @Sialuckyaadoo 5 หลายเดือนก่อน

      For vice versa you again need to generate key

  • @ApurvTripathi-mc3iy
    @ApurvTripathi-mc3iy 3 หลายเดือนก่อน

    try again logging in, still asking for password
    when copied key at that time its working fine but when reopen or try in new window still password is required.

  • @avinashkumarbhardwaj9407
    @avinashkumarbhardwaj9407 ปีที่แล้ว

    Ye sir agar kisi server ka password nahi pata ho ya usne inbound outbound block kar ke rkha hai to humm uske server ko kese connect karege ya data kese replace karege another Server pe

  • @108_sahilgaikwad7
    @108_sahilgaikwad7 2 หลายเดือนก่อน

    sir server-client k beechme ssh pwdless karneka try kar raha tha par passwd barabar dalke bhi wrong dikha raha hai

  • @pravin3870
    @pravin3870 9 หลายเดือนก่อน

    but were on a live production server with millions of users
    we have strictly prohabited to do any change at all can i do it or not

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

    Keep it up

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

    Awesome bro

  • @vaibhavchitare3921
    @vaibhavchitare3921 ปีที่แล้ว

    Sir AWS cloud ke bhi questions and answer video banao

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

    thank you broooooo❤❤

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

    Sir Please Make the Ansible Video

  • @PiyushGhosh-l4k
    @PiyushGhosh-l4k 10 หลายเดือนก่อน

    Sir aapne sshd_conf file me kam kiya hai ????

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

    I would like to understand what happens internally when we connect through ssh. where are all the logs gets store can you please ping me or create a video

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      You can try watching video on log analysis th-cam.com/video/tA-32BLjrFA/w-d-xo.html

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

    Sir I have a doubt I have only started ssh now. So which password should I put while running the command username@ip? And how can I find the password?

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Generally when a admin create a user on Linux server, there should be a password.

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      as a admin you can set a password for the given user #passwd user_name

    • @neeraj9382
      @neeraj9382 ปีที่แล้ว

      I have one more doubt I tried to Access my own device with a Linux vm when I used these commands connection refused so what should I do?
      How can I find my windows ssh password?
      How can I connect 2 widows pc through ssh when I tried to connect it says connection timed out.

    • @neeraj9382
      @neeraj9382 ปีที่แล้ว

      @@MPrashant Sir how can I connect with two windows pc everytime I tried to connect connect refused or timed out.🫥

  • @rakeshr2678
    @rakeshr2678 7 หลายเดือนก่อน +1

    Can you make videos for Ansible?

    • @MPrashant
      @MPrashant  7 หลายเดือนก่อน

      Already started working on it, coming soon.

  • @Odisha2bangalore
    @Odisha2bangalore หลายเดือนก่อน

    In my end permission denied (public key).. please help me

  • @rameshpatil8104
    @rameshpatil8104 ปีที่แล้ว

    Could you please explain which key you entered when it asked for one last time?
    Because my doubt is we will not be having any password for our aws ec2 instance root user right... so which one i need to enter?

    • @fayazmohammad1391
      @fayazmohammad1391 ปีที่แล้ว

      bro i think u cant access any server as root.
      try ssh to any sudo user.

  • @raficv9522
    @raficv9522 2 หลายเดือนก่อน

    What if two systems on different networks

  • @rakeshr2678
    @rakeshr2678 7 หลายเดือนก่อน +1

    u save me

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

    sir can you tell me how can i set the password again ?

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      using 'passwd ' command

  • @naveenkumarshukla
    @naveenkumarshukla 11 หลายเดือนก่อน

    How can i copy my ssh key to multiple servers in a single command or via bash script? Please help

    • @ajaya8421
      @ajaya8421 5 หลายเดือนก่อน

      got any solutions...i need help on same thing too

  • @pkurkure
    @pkurkure ปีที่แล้ว

    if i want to do setup for 2 mahnices access one server so that time what to do with ssh for without password

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      If it is part of internal network so better to use without password

  • @tabrezahmad9295
    @tabrezahmad9295 ปีที่แล้ว

    Sir aap ignore karte hai comment mera
    Pls humble request pls make video on
    1. LVM
    2. Iptables
    3.MYSQL

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Not ignoring but busy schedule ke karn videos ni aa pa rhi, I will try buddy

  • @blackhat5458
    @blackhat5458 หลายเดือนก่อน

    My friend lives in Japan. He use Linux. I want to access his machine but i can not. Because of the IP address.

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      Machine need to be exposed to internet in that case.
      Ensure SSH is installed and running on your friend's machine.
      Set up port forwarding on your friend's router.
      Obtain your friend's public IP address.
      Configure the firewall to allow SSH traffic.
      Secure the SSH server.
      Connect using SSH.

  • @sumitghosh5025
    @sumitghosh5025 หลายเดือนก่อน

    I am getting permission denied . not sure how to fix this

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      Make sure username/password is correct
      SSH is running on target server
      SSH service is enabled on firewall on target server.

  • @purveshgosalia8039
    @purveshgosalia8039 หลายเดือนก่อน

    are both public keys same on local and server ?

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      yes

    • @purveshgosalia8039
      @purveshgosalia8039 หลายเดือนก่อน

      @@MPrashant bro

    • @purveshgosalia8039
      @purveshgosalia8039 หลายเดือนก่อน

      First of all we are doing key gen on master but it should be done on slave na
      Bcz slave generated key should ke shared and saved under authorised key of master
      So whenever next time slave tries to make connections req master can see yes it's a authorised one let him connect with me
      Where as we are doing key gen on master and saving his private key in slave authorised why ?
      Hope you got my question

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      @@purveshgosalia8039
      Any terminal with SSH utility can generate keys.
      you can assume Terminal as slave and Linux server as Master.
      Only slave will generate keys.
      Public will be shared to master.
      The private key remains on the local machine and is never shared.
      private key is used to authenticate the current user and terminal.

    • @purveshgosalia8039
      @purveshgosalia8039 หลายเดือนก่อน

      @@MPrashantfirst of all thanks for quick reply
      Just say am I right or not
      So I am connecting Ubuntu (slave) to Kali (master)
      1) generate key in ubuntu
      2 share public to Kali under authorised
      3) ssh from ubuntu
      This ir correct ?

  • @amitkrmandal9974
    @amitkrmandal9974 ปีที่แล้ว

    Hello
    Dear sir
    How to access Other system by ssh . Actually I got stucked . Plz sir resolve this topic

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Hi,
      can you provide more details on what are you trying to do? where are you stucked at?

  • @shariffrasheed9294
    @shariffrasheed9294 ปีที่แล้ว

    What password should we enter. From Where we get that password?

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      This password should be provided by the admin or root user

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

    What about ping command?

  • @nabinkumarshaw4474
    @nabinkumarshaw4474 หลายเดือนก่อน

    bhaiya permission denied aa rha dono tariko mey

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      Maybe firewall issue, ssh service on main server should be allowed to accept connection from outside.

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 หลายเดือนก่อน

      @@MPrashant bhaiya ye permission denied issue ka ek video btayee na

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

      @nabinkumarshaw4474 sure

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 หลายเดือนก่อน

      @@MPrashant I am sticking the whole day today ,actually I learn Jenkins from your video but during this I will stuck

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 หลายเดือนก่อน

      Your videoes on devops are awesome really learning from it bhaiya.and I suggest all my friend to do from your playlist

  • @fayazmohammad1391
    @fayazmohammad1391 ปีที่แล้ว

    can anybody explain how to disable this ?

  • @fingerfighters9999
    @fingerfighters9999 ปีที่แล้ว

    Clickbait

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      may I know in which part of video you feel its a clickbait