LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-17-2006, 05:44 AM   #1
qrshat
Member
 
Registered: Oct 2005
Posts: 56

Rep: Reputation: 15
running shell command on remote machine with ssh


hi guru,

i want to run shell commands on a remote Solaris machine. Before i was running this command with the rsh utility. But now we installed ssh on both machine. so i can't use rsh. and i am looking for a way to run shell commands on remote machine. because of ssh, these machine now aren't trusted. is there a way made these machines trusted in ssh? and is there a way running unix command on a remote solaris machine,

thanks in advance,
 
Old 08-17-2006, 06:10 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
I find this a very odd question. Although I dont know what rsh is. But ssh is like telnet, if you are used to windows. But its alot more secure. You login with your username and pass, and just type in the commands.
$uname -a
$whoami
or whatever..
 
Old 08-17-2006, 07:04 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by qrshat
i want to run shell commands on a remote Solaris machine. Before i was running this command with the rsh utility. But now we installed ssh on both machine. so i can't use rsh.
Installing ssh doesn't prevent per itself to still use rsh.
Quote:
and i am looking for a way to run shell commands on remote machine. because of ssh, these machine now aren't trusted.
Yes, ssh doesn't honor rhosts.
Quote:
is there a way made these machines trusted in ssh?
No, but you can have user account trusted by using private and public keys.
See that page for a setup: http://www.sun.com/bigadmin/content/...h_setting.html
Quote:
and is there a way running unix command on a remote solaris machine,
Hopefully yes, and ssh is one of them.
 
Old 08-17-2006, 07:32 AM   #4
qrshat
Member
 
Registered: Oct 2005
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre
thanks jill. exactly what i needed.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 12:21 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 01:38 AM
running X applications on remote machine when logged in via ssh servnov Linux - General 1 08-15-2005 08:53 PM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
ssh not connecting to a remote machine. Eux Debian 5 09-22-2004 04:44 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:42 AM.

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