ansible v2 (release 3.4.9)
This commit is contained in:
8
ssh_key/key.sh
Executable file
8
ssh_key/key.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/expect -f
|
||||
set password [lindex $argv 0]
|
||||
set host [lindex $argv 1]
|
||||
|
||||
spawn ssh-copy-id -o StrictHostKeyChecking=no root@$host
|
||||
expect "password:"
|
||||
send "$password\n"
|
||||
expect eof
|
||||
Reference in New Issue
Block a user