passwordless ssh – ssh without a password

“ssh without password” is a must for many cluster solutions. I encountered this when I started to play with apache spark. The following is how:

From master=>

ssh-keygen [enter enter]

This will generate id_rsa and Next, we will put the public key to a slave. Luckily, ssh-copy-id is the tool to do the job.

ssh-copy-id -i ~/.ssh/ [slaveIP e.g. 1. 2. 3. 4.]

Now we should be able to ssh ‘remote IP’ without ip using current username.



One thought on “passwordless ssh – ssh without a password

  1. Aw, this was an incredibly nice post. Spending some time and actual effort to generate a really good article… but
    what can I say… I hesitate a lot and never seem
    to get anything done.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s