Computing.Net > Forums > Unix > remote login using a script

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

Reply to Message Icon

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.




Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: remote login using a script

Remote logging onto a Linux box www.computing.net/answers/unix/remote-logging-onto-a-linux-box/4728.html

Shutdown remotely by a script-Linux www.computing.net/answers/unix/shutdown-remotely-by-a-scriptlinux/5225.html

Using a script with UNIX commands t www.computing.net/answers/unix/using-a-script-with-unix-commands-t/3781.html