LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-18-2008, 02:40 AM   #1
Eatm3Pro
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
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!
 
Old 08-18-2008, 03:25 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Setup SSH with public key authentication. This will allow you as a user to ssh to remote hosts without requiring a keyboard interactive password. See: http://www.linuxquestions.org/linux/...ation_with_ssh
 
Old 08-18-2008, 04:55 AM   #3
Eatm3Pro
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mr. C. View Post
Setup SSH with public key authentication. This will allow you as a user to ssh to remote hosts without requiring a keyboard interactive password. See: http://www.linuxquestions.org/linux/...ation_with_ssh
thanks man
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
how to make a user id & password auto login? dgr Linux - Newbie 4 10-01-2007 12:59 PM
Auto-login Without user and password hraposo Fedora 1 07-12-2006 07:15 AM
a similar program to roboform (password/auto login prog) in kde/linux? zeltak Linux - Software 1 02-10-2006 06:55 AM
Removing Root Password/Auto login friendklay Linux - General 7 05-13-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration