top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we ssh to any machine without password on Linux/Unix Platform?

+3 votes
361 views
How can we ssh to any machine without password on Linux/Unix Platform?
posted Nov 17, 2014 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+3 votes

There are few steps need to be done to achieve this:

  1. Log into machine X using ssh.
  2. Trigger "ssh-keygen -t rsa". It generates key pair
  3. Copy the generated public key .ssh/id_rsa.pub into another machine Y (the machine which you want to ssh without using password) at path .ssh/authorized_keys.
  4. Do ssh Y . It will not ask password.
answer Nov 18, 2014 by Vimal Kumar Mishra
...