Sponsored Content
Full Discussion: rlogin
Top Forums UNIX for Dummies Questions & Answers rlogin Post 71445 by seaten on Wednesday 11th of May 2005 07:53:28 AM
Old 05-11-2005
rlogin

Hi,

I have a script and need to use rlogin to access "server1".

As there will be different servers used and there will be different usernames and passwords.


Is it possible to pass the server name, username and password as arguments on the command line and the script work from there.

How could I do this , if possible ?

Thanks
 

10 More Discussions You Might Find Interesting

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

2. 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

3. 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

4. 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

5. UNIX for Dummies Questions & Answers

rlogin issues

hi i got 3 boxes, boxA, boxB, boxC i can do the below boxA> ufsdump 0fu boxB:/mydirectory/myfile /myfile boxA> rlogin boxB is okay but when i do the below boxA> ufsdump 0fu boxC:/mydirectory/myfile /myfile, system says error, boxA> rlogin boxC got error on... (5 Replies)
Discussion started by: yls177
5 Replies

6. UNIX for Dummies Questions & Answers

Rlogin

i got a dout in rlogin . whether rlogin is same as telnet (1 Reply)
Discussion started by: shanmugam
1 Replies

7. UNIX for Advanced & Expert Users

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 (1 Reply)
Discussion started by: shary
1 Replies

8. 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

9. IP Networking

rlogin,telnet-different or same?

Hai guys, Both "rlogin" and "telnet" are used to login remote host.Is there any differece between these 2 commands? (or) are both same? Thanks (1 Reply)
Discussion started by: Felicia23
1 Replies

10. Solaris

rlogin help!

Guys, I'm running solaris 9 on two systems: 1 and 2, let's say. From 1, if I say rlogin 2, i can just login. No passwd prompt! From 2, if I say rlogin 1, it asks for the passwd. (able to login with a passwd) But, they both have the same config files, same set up, same network etc. What... (13 Replies)
Discussion started by: the_red_dove
13 Replies
RLOGIN(1)						      General Commands Manual							 RLOGIN(1)

NAME
rlogin - remote login SYNOPSIS
rlogin rhost [-ec] [-8] [-c] [ -a] [-f] [-F] [-t termtype] [-n] [-7] [-PN | -PO] [-d] [-k realm] [-x] [-L] [-l username] DESCRIPTION
Rlogin connects your terminal on the current local host system lhost to the remote host system rhost. The version built to use Kerberos authentication is very similar to the standard Berkeley rlogin(1), except that instead of the rhosts mechanism, it uses Kerberos authentication to determine the authorization to use a remote account. Each user may have a private authorization list in a file .k5login in his login directory. Each line in this file should contain a Ker- beros principal name of the form principal/instance@realm. If the originating user is authenticated to one of the principals named in .k5login, access is granted to the account. If there is no /.k5login file, the principal will be granted access to the account according to the aname->lname mapping rules. (See krb5_anadd(8) for more details.) Otherwise a login and password will be prompted for on the remote machine as in login(1). To avoid some security problems, the .k5login file must be owned by the remote user. If there is some problem in marshaling the Kerberos authentication information, an error message is printed and the standard UCB rlogin is executed in place of the Kerberos rlogin. A line of the form ``~.'' disconnects from the remote host, where ``~'' is the escape character. Similarly, the line ``~^Z'' (where ^Z, control-Z, is the suspend character) will suspend the rlogin session. Substitution of the delayed-suspend character (normally ^Y) for the suspend character suspends the send portion of the rlogin, but allows output from the remote system. The remote terminal type is the same as your local terminal type (as given in your environment TERM variable), unless the -t option is specified (see below). The terminal or window size is also copied to the remote system if the server supports the option, and changes in size are reflected as well. All echoing takes place at the remote site, so that (except for delays) the rlogin is transparent. Flow control via ^S and ^Q and flushing of input and output on interrupts are handled properly. OPTIONS
-8 allows an eight-bit input data path at all times; otherwise parity bits are stripped except when the remote side's stop and start characters are other than ^S/^Q. Eight-bit mode is the default. -L allows the rlogin session to be run in litout mode. -ec sets the escape character to c. There is no space separating this option flag and the new escape character. -c require confirmation before disconnecting via ``~.'' -a force the remote machine to ask for a password by sending a null local username. This option has no effect unless the standard UCB rlogin is executed in place of the Kerberos rlogin (see above). -f forward a copy of the local credentials to the remote system. -F forward a forwardable copy of the local credentials to the remote system. -t termtype replace the terminal type passed to the remote host with termtype. -n prevent suspension of rlogin via ``~^Z'' or ``~^Y''. -7 force seven-bit transmissions. -d turn on socket debugging (via setsockopt(2)) on the TCP sockets used for communication with the remote host. -k request rlogin to obtain tickets for the remote host in realm realm instead of the remote host's realm as determined by krb_real- mofhost(3). -x turn on DES encryption for all data passed via the rlogin session. This significantly reduces response time and significantly increases CPU utilization. -PN -PO Explicitly request new or old version of the Kerberos ``rcmd'' protocol. The new protocol avoids many security problems found in the old one, but is not interoperable with older servers. (An "input/output error" and a closed connection is the most likely result of attempting this combination.) If neither option is specified, some simple heuristics are used to guess which to try. SEE ALSO
rsh(1), kerberos(3), krb_sendauth(3), krb_realmofhost(3), rlogin(1) [UCB version] FILES
~/.k5login (on remote host) - file containing Kerberos principals that are allowed access. BUGS
More of the environment should be propagated. RLOGIN(1)
All times are GMT -4. The time now is 11:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy