LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   password??? (https://www.linuxquestions.org/questions/linux-networking-3/password-341201/)

Zinghung 07-08-2005 04:21 AM

password???
 
I would like to use remote shut down with command

ssh -l loginname user@hostname shutdown -t 300 now

then it call me to type in the password, is it possible to finish the process in one line with the password?

nixcraft 07-08-2005 04:25 AM

Quote:

then it call me to type in the password, is it possible to finish the process in one line with the password?
If you DON"T want password prompt then enable SSH Public key based authentication. Once done you can not just login without password but also run the command. See url http://www.cyberciti.biz/nixcraft/vi...ntication.html how to enable ssh Public key based authentication.


All times are GMT -5. The time now is 09:51 PM.