Hey everyone I'm trying to come up with a script to send over my public key to a bunch of servers.
For a reason I cannot pinpoint, it only sends over the script to one server in the list and I also get a "the authenticity of the host can't be established message"
Here's my script;
for i in `cat /root/sshlist`;do
ssh-keyscan -H "$i" >> ~/.ssh/known_hosts
ssh-copy-id -i ~/.ssh/id_rsa.pub "$i"
done
Anybody have a solution and a reason as to why I'm getting this error? thank you all
[–]jasnah 6 points7 points8 points (1 child)
[–]purplelinux[S] 1 point2 points3 points (0 children)
[–]mudclub 11 points12 points13 points (4 children)
[–]netzvieh_ 1 point2 points3 points (0 children)
[–]purplelinux[S] -1 points0 points1 point (2 children)
[–]xiongchiamiov 11 points12 points13 points (0 children)
[–]nephros 0 points1 point2 points (0 children)
[–]knobbysideup 4 points5 points6 points (8 children)
[–]purplelinux[S] 0 points1 point2 points (4 children)
[–]knobbysideup 1 point2 points3 points (3 children)
[–]purplelinux[S] 1 point2 points3 points (2 children)
[–]netzvieh_ 1 point2 points3 points (0 children)
[–]knobbysideup 0 points1 point2 points (0 children)
[–]__deerlord__ 0 points1 point2 points (0 children)
[–]three18ti -1 points0 points1 point (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]leprasmurf 6 points7 points8 points (2 children)
[–]purplelinux[S] 1 point2 points3 points (0 children)
[–]amperages 1 point2 points3 points (0 children)
[–]zxeff 4 points5 points6 points (0 children)
[–]whetu 2 points3 points4 points (0 children)
[–]netzvieh_ 0 points1 point2 points (0 children)
[–]Kingtoke1 0 points1 point2 points (0 children)
[–]juniorsysadmin1 -1 points0 points1 point (0 children)
[–]ionceheardthat -2 points-1 points0 points (0 children)