The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to send command periodically to remote server sayeo Shell Programming and Scripting 2 03-17-2008 03:42 AM
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 01:30 PM
Running a script in a server from another server csaha Shell Programming and Scripting 2 02-16-2006 05:11 AM
Command for copy a file from one server to another server sarwan High Level Programming 2 11-13-2005 11:17 AM
how to move a file from one server to another server using FTP in shell script? forevercalz Shell Programming and Scripting 4 10-27-2005 01:53 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
naree naree is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 81
I want to run a script or command on other server

Hi all,

I have done ssh-keygen to two servers in work place and given there entry for authorized_keys. I m able to ssh to other servers without asking password. But i face problem while trying to run a command or script on other server. It is throwing an Error.

$ ssh username@server2:iostat

Error:
ssh: server2:iostat: host/servname not known

Please help me in this Regard.

Thank U
Naree
  #2 (permalink)  
Old 03-12-2008
naree naree is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 81
Can any one please help me in this regard

Hi all,
I have posted my thread in the above!! Please any one who can help in this regard.

Thank U
Naree
  #3 (permalink)  
Old 03-12-2008
naree naree is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 81
Help Me

HELP ME IN THIS REGARD...

Thank U
Naree
  #4 (permalink)  
Old 03-12-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,947
have a look at the manpage!

ssh [-l login_name] hostname | user@hostname [ command]

so:
$ ssh username@server2 iostat

without the ":"
  #5 (permalink)  
Old 03-12-2008
naree naree is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 81
Thanks U

Thanks alot !! It really solved my purpose

Naree
Sponsored Links
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 06:49 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