The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-12-2007
asadlone asadlone is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 44
Ssh

Dear All,

I want to ssh to a computer and send a command to it to get executed,

for instance


ssh machine1 df -k

but the issue is that i have to enter password everytime i run this command; can i include the password in the command line somewhere

i want to make it a script...

kindly help me out...

BR/asad
  #2 (permalink)  
Old 07-12-2007
madmat madmat is offline
Registered User
  
 

Join Date: Aug 2005
Location: Paris
Posts: 80
Hi,

You must declare authorized keys in/out for any user you want to use (in $HOME/.ssh directory).
At the first connection, the system will ask you if you want to register the user and after, you won't have any question.
Search on this forum, I must find answers for yours questions...

Rgds
  #3 (permalink)  
Old 07-12-2007
arushunter arushunter is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 31
Just answered it here
http://www.unix.com/shell-programmin...#post302126646
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0