problem in rlogin


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users problem in rlogin
# 1  
Old 06-04-2007
problem in rlogin

Dear Experts,
i want to make one script ,by running that script it should rlogin from one mashine to another and the username and passord should be in the script so that it could not ask from me the username and password of another machine from me .
please help me out.
Regards,
SHARY
# 2  
Old 06-04-2007
Using ~/.rhosts

Hi,
I think you can make use of ${HOME}/.rhosts file to make login without requiring password to be keyed in.

Create the file ~/.rhosts in the target host and add the line,

cat ~/.rhosts
Code:
localhost loginid

By using ~/.rhosts file to can login on the target host using,
Code:
rlogin targethost

Ensure the ~/.rhosts file is protected from the other users.

Thanks
Nagarajan Ganesan.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

RSH/rlogin problem

Hello, When I try and RSH/RLOGIN onto a box with user root, I get the prompt but the username/password combination NEVER work. I have the password up properly on the host machine. Does rsh/rlogin not make use of ./etc/passwd and /etc/shadow? (1 Reply)
Discussion started by: mojoman
1 Replies

2. UNIX for Dummies Questions & Answers

strange rlogin problem

Hi, in my environment we have several server with rlogin passwordless login enabled, now there is a problem to setup this with a hpux server. i have check the .rhosts file and kerberos key are all setup properly and permission is correct, even other user id on the server can login without... (3 Replies)
Discussion started by: robertngo
3 Replies

3. Shell Programming and Scripting

rlogin

Hi all, i need to remotely execute a couple of commands on anyother server, but rsh is not allowed. for that matter i am bound to use rlogin. so what i am trying to do in the script is : 1) rlogin asad 2) Wait for Login prompt 3) Waiting for Password Prompt 4) Once authenticated, execute... (4 Replies)
Discussion started by: asadlone
4 Replies

4. HP-UX

rlogin problem

on the system, sometimes the rlogin command can not login the remote node,but ping command can echo the packet. if the inetd domean restarted , rlogin runs normally. We want to know what cause the rlogin failed and how to fix it. (2 Replies)
Discussion started by: Frank2004
2 Replies

5. UNIX for Advanced & Expert Users

RLogin problem

I need to establish rlogin between 2 of my servers (and I know, it's not secure, smart, etc. ... it's a temporary requirement that I have to do) I tried all the standards. I'm trying to rlogin from server A to server B On server B, I made a /.rhosts file that contains server A's name On... (4 Replies)
Discussion started by: FredSmith
4 Replies

6. IP Networking

rlogin problem

On the HP-UX hostA, the command rlogin hostB generates the error "rlogind: Host address mismatch" even though the hostname & IP of hostA are defined in the .rhosts file and the /etc/hosts files of hostB respectively. The IP and the hostname of hostB are defined in the /etc/hosts file of hostA. (1 Reply)
Discussion started by: vijaysharma.vs
1 Replies

7. Cybersecurity

not allow rlogin

does anyone know how to stop rlogin to my sunsolaris so I have 2 machines...I can not telnet one becouse that is not allowed but I can telnet the other and do rlogin to first one..I want to stop that.. so.. telnet A from C machine - works telnet B from C machine - does not work but... (3 Replies)
Discussion started by: amon
3 Replies

8. Shell Programming and Scripting

rlogin

I'm comparing a table from two databases on two different servers to check for equality. 1. How do I use rlogin from a script , is it like this ? rlogin -l $username $server1 where $username and $server1 are passed from the command line. 2.create a copy of that table, compress it and... (3 Replies)
Discussion started by: seaten
3 Replies

9. UNIX for Advanced & Expert Users

RLOGIN problem

hi ! i ve a problem with rlogin. i have a server from which only root user can Rlogin other servers. other users can t rlogin, they get the following error : "rcmd2: socket: The file access permissions do not allow the specified action" Does somebody can help ? Thanks, Karine (3 Replies)
Discussion started by: karine
3 Replies

10. UNIX for Dummies Questions & Answers

Rlogin???

From any computer on our network when you rlogin into one machine (this only happens on this machine) it'll hang for about 3 minutes before loggin into that machine. If your sick of waiting you can do a <ctrl> C and then it'll rlogin into the machine it is meant to BUT it wont keep the shell... (1 Reply)
Discussion started by: merlin
1 Replies
Login or Register to Ask a Question