I wondering how to put the password in bash to auto login to others cpu
Hello, I'm newbie in linux but i would like to know how to create a bash file to auto login and poweroff a machine.
I have 4 cpu in my office for monitoring purpose and i have to turn them off before i leave so i wondering that if there is any script to enter the password automatic .
#!/bin/bash
ssh 192.168.1.1 poweroff
I wrote this in my bash file. and what is the command I should add, in order to enter the password. Hope to hear from you guys soon.
Thank you!
|