Skip to main content
deleted 2 characters in body; edited title
Source Link
muru
  • 77.9k
  • 16
  • 212
  • 318

linux + how How pssh do the ssh activities without password

linux + how How pssh do the ssh activities without password

the follwing pssh command do a parallel as date

pssh -i -H "master01 master02 master03 worker01 worker02"  -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes' date | grep -v "^\["
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019

but we notice that the password for the machines not defined so how pssh do the ssh activities without password ?

linux + how pssh do the ssh activities without password

the follwing pssh command do a parallel as date

pssh -i -H "master01 master02 master03 worker01 worker02"  -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes' date | grep -v "^\["
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019

but we notice that the password for the machines not defined so how pssh do the ssh activities without password ?

How pssh do the ssh activities without password

the follwing pssh command do a parallel as date

pssh -i -H "master01 master02 master03 worker01 worker02"  -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes' date | grep -v "^\["
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019

but we notice that the password for the machines not defined so how pssh do the ssh activities without password ?

edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264
Source Link
yael
  • 14k
  • 72
  • 220
  • 377

linux + how pssh do the ssh activities without password

the follwing pssh command do a parallel as date

pssh -i -H "master01 master02 master03 worker01 worker02"  -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o PubkeyAuthentication=yes' date | grep -v "^\["
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019
Fri Jul 12 12:37:35 UTC 2019

but we notice that the password for the machines not defined so how pssh do the ssh activities without password ?