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

Поділитися
Вставка
  • Опубліковано 20 сер 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 8 місяців тому +4

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

    • @MPrashant
      @MPrashant  8 місяців тому

      Glad it helped and thank for the wish😊

  • @seenivasantamilmani9944
    @seenivasantamilmani9944 3 місяці тому +2

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

  • @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 ;)

  • @funn-onn-funn
    @funn-onn-funn 11 місяців тому +1

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

  • @ApurvTripathi-mc3iy
    @ApurvTripathi-mc3iy 2 місяці тому

    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.

  • @108_sahilgaikwad7
    @108_sahilgaikwad7 Місяць тому

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

  • @mayurborhade5624
    @mayurborhade5624 11 місяців тому +1

    very helpful for me

  • @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!

  • @Odisha2bangalore
    @Odisha2bangalore Місяць тому

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

  • @rockykgf1383
    @rockykgf1383 8 місяців тому +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

  • @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?

  • @ravichauhan1594
    @ravichauhan1594 Рік тому +1

    Great sir very helpful 🙏

  • @raficv9522
    @raficv9522 Місяць тому

    What if two systems on different networks

  • @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

  • @shubhamarya6708
    @shubhamarya6708 Рік тому +1

    Nice

  • @amitkrmandal9974
    @amitkrmandal9974 Рік тому +2

    Sir Please Make the Ansible Video

  • @mohdfaizal9485
    @mohdfaizal9485 Рік тому +1

    Great brother 👍🏻

  • @pravin3870
    @pravin3870 8 місяців тому

    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

  • @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

  • @fayazmohammad1391
    @fayazmohammad1391 Рік тому +1

    thank you broooooo❤❤

  • @rakeshr2678
    @rakeshr2678 6 місяців тому +1

    Can you make videos for Ansible?

    • @MPrashant
      @MPrashant  6 місяців тому

      Already started working on it, coming soon.

  • @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 ua-cam.com/video/tA-32BLjrFA/v-deo.html

  • @vaibhavchitare3921
    @vaibhavchitare3921 Рік тому

    Sir AWS cloud ke bhi questions and answer video banao

  • @blackhat5458
    @blackhat5458 27 днів тому

    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  27 днів тому

      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.

  • @tahirm09
    @tahirm09 Рік тому +1

    Keep it up

  • @iramnoor6498
    @iramnoor6498 Рік тому +1

    Awesome bro

  • @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.🫥

  • @sumitghosh5025
    @sumitghosh5025 27 днів тому

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

    • @MPrashant
      @MPrashant  27 днів тому

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

  • @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

  • @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 4 місяці тому

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

  • @rakeshr2678
    @rakeshr2678 6 місяців тому +1

    u save me

  • @caspergaming8003
    @caspergaming8003 Рік тому +1

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

  • @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.

  • @user-pc1pm1vb7p
    @user-pc1pm1vb7p 9 місяців тому

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

  • @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

  • @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

  • @purveshgosalia8039
    @purveshgosalia8039 29 днів тому

    are both public keys same on local and server ?

    • @MPrashant
      @MPrashant  29 днів тому

      yes

    • @purveshgosalia8039
      @purveshgosalia8039 29 днів тому

      @@MPrashant bro

    • @purveshgosalia8039
      @purveshgosalia8039 29 днів тому

      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  29 днів тому

      @@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 29 днів тому

      @@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 ?

  • @digambarawate4380
    @digambarawate4380 Рік тому +1

    What about ping command?

  • @fayazmohammad1391
    @fayazmohammad1391 Рік тому

    can anybody explain how to disable this ?

  • @nabinkumarshaw4474
    @nabinkumarshaw4474 22 дні тому

    bhaiya permission denied aa rha dono tariko mey

    • @MPrashant
      @MPrashant  22 дні тому

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

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 22 дні тому

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

    • @MPrashant
      @MPrashant  22 дні тому +1

      @nabinkumarshaw4474 sure

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 22 дні тому

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

    • @nabinkumarshaw4474
      @nabinkumarshaw4474 22 дні тому

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

  • @fingerfighters9999
    @fingerfighters9999 Рік тому

    Clickbait

    • @MPrashant
      @MPrashant  Рік тому

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