Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
remote login using a script
Name: paul Date: September 10, 2002 at 06:56:36 Pacific OS: HPUX 11.11 CPU/Ram: xxx
Comment:
I am trying to login to a server with a script. However when the password is asked for the script is interrupted and does not run. What can I do to run the script so that the password does not interrupt my script.
Name: blue Date: September 10, 2002 at 07:36:12 Pacific
Reply:
there is an answer to this question a little bit down in the page.
0
Response Number 2
Name: paul Date: September 10, 2002 at 08:13:27 Pacific
Reply:
Could you tell me the structure of those files?
0
Response Number 3
Name: blue Date: September 10, 2002 at 13:20:26 Pacific
Reply:
you must edit the files in both servers, for the /etc/hosts file you can add systems like this: xxx.xxx.xxx.xxx servername servername.domain (the xxx.xxx.xxx.xxx is the IP) you must have one line for your server and 1 for all servers that you want to acces for the /etc/hosts.equiv servername user you must add a line for every user and server example server1 root server1 paul server1 count add as many lines that you need, add the users for the local server too the structure for the /.rhosts is the same. check the permissions for the 3 files for: /.rhosts must be 640 user roor group other /etc/hosts 644 user and group bin /etc/hosts.equiv 777 user and group bin NOTE: the userīs account must be active in both servers, example if you use the user paul in server1 to make the rlogin in server2, you must have an account in server2 named paul if this is not enough i can mail the 3 files to you.
Summary: 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 int...
Summary: Hi All, I have Linux 7.2 severs (5 servers) in the same LAN. I need to run a script to shutdown all of them using a script which runs on a Solaris machine which is connected to the same LAN. Please ad...
Summary: I need help with merging two files with matching data. I know very little about writing scripts so please answer at the most granular level if possible. All help will be greatly appreciated. I am try...