Computing.Net > Forums > Unix > Remote logging onto a Linux box

Remote logging onto a Linux box

Reply to Message Icon

Original Message
Name: Priya
Date: March 14, 2003 at 12:52:55 Pacific
Subject: Remote logging onto a Linux box
OS: SunOS
CPU/Ram: -
Comment:

Hi,

I am running a Korn script on a Solaris box. I would however like to execute some scripts on a Linux box by remotely logging in (as a part of my korn script) non interactively i.e. the logging into the Linux box is a part of the script. However, if I run a rsh, it says permission denied (as it requires inteactive logging using telnet). I tried modifying the .rhosts file, but that doesn't seem to help. Can someone guide me as to the changes I need to make in my .rhosts file and how to go about doing the remote login from a Solaris box to a Linx box through the korn script.

my script goes like this... but it doesn't work....
user=my_login
MRSH_HOST=a_linux_machine_name
export LOCAL_OS=$( rsh -l ${user} ${MRSH_HOST} uname )

case ${LOCAL_OS} in
AIX )
MRSH_RSH="rsh ${MRSH_HOST} -l ${user}"
;;
SunOS )
MRSH_RSH="rsh -l ${user} ${MRSH_HOST}"
;;
Linux )
MRSH_RSH="rsh -l ${user} ${MRSH_HOST}"
;;
* )
( echo "${__FN}: Unrecognized OS: ${MRSH_LOCAL_OS}" 1>&2 )
return -1
;;
esac


Thanks,
Priya.


Report Offensive Message For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Remote logging onto a Linux box

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software