ssh without password authentication, use ssh to interact between multiple machines

ssh-keygen -t rsa -P '' -f ~ /
   .ssh/id_rsa
   cp id_rsa.pub authorized_keys ssh

   localhost You


also need to enter a password)
  scp file host name: path
  scp authorized_keys slave1:/home/hadoop/.ssh

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326655610&siteId=291194637