Sponsored Content
Special Forums IP Networking rlogin questions (Unix Tip 3426 - June 26, 2012) Post 302662115 by RandyKramer on Tuesday 26th of June 2012 07:31:09 AM
Old 06-26-2012
rlogin questions (Unix Tip 3426 - June 26, 2012)

In the following Unix Tip from Unix Guru Universe, are there some typos?

Specifically, should:
  • "From hosts(user:deepak)" be "From host2(user:deepak)"? (I'm almost 100% certain it should)
  • "rlogin hosts.domain.com -l paul" be "rlogin host2.domain.com -l paul"?
Some related questions (to one thing or another):
  • is there any better place to ask questions about these Unix Tips of the Day?
  • can anyone suggest some very simple ways to learn about rlogin, rsh, telnet, ssh and such? I seem to get easily confused, and I'd like to find some simple "bite sized" sources of information with sketches that would help me learn this stuff once and for all.
Thank you!

Code:
Unix Tip 3426 - June 26, 2012

AUTOMATIC LOGIN TO REMOTE HOSTS

Consider two hosts.
host1.domain.com
host2.domain.com

>From hosts(user:deepak), 
you wish to logon to
host1(user:paul).

Paul would create a .rhosts 
file in his directory 

chmod 744 .rhosts 

(No write permission for 
others) The first line 
would contain 
host1.domain.com deepak

Now, deepak should be able 
to logon to host2.domain.com 
as user paul by using rlogin.

Deepak will type
e.g
rlogin hosts.domain.com -l paul

And he should be in.

 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem with tip utility in unix

Hi , I have wrote a telnet clinet application to interact with remote system . This program takes the screen shots for every interaction and send back to us. After connecting to remote machine , i want to call tip utility to interact with a device which is connected to one remote system. Now my... (0 Replies)
Discussion started by: prasadvsda
0 Replies

2. UNIX for Dummies Questions & Answers

I have a few questions about Unix..

Hi I have just a few questions about the Unix aka NIX operating system. 1. Is it a free Operating System and if so where can I obtain it. 2. Where can I start out for a newbies guide to the OS. Thanks (1 Reply)
Discussion started by: SolidWing68
1 Replies

3. UNIX for Dummies Questions & Answers

Unix coding tip required

Hi! Suppose I am at a location xyz:/abc1/abc2/abc3 Is it possible to move to another location xyz:/mnl1/mnl2/mnl3 by some coding within a script? (5 Replies)
Discussion started by: udiptya
5 Replies

4. Shell Programming and Scripting

How do i compare two dates with format Jan 01, 2012 and Jan 00 2012

I need to be able to compare dates in the format of Jan 10, 2012 and Jan 10 2012. (Notice one has a comma). Then I need to find the date that is 7 days before those dates if they are equal. How can I do this in Bash. Thank ahead (4 Replies)
Discussion started by: ojthejuice
4 Replies

5. Shell Programming and Scripting

gawk convert 2012-Jun-13 to 2012-06-13

I have a value in a file i am processing that has a date like "2012-Jun-13" how can I convert a date like that 2012-06-13? Am I stuck building an array of three digit months and corresponding numbers and running through the logic of figuring out the number?? or can I convert this with... (1 Reply)
Discussion started by: trey85stang
1 Replies

6. Shell Programming and Scripting

Date conversion help from dd/mm/yyyy to dd/Mon/yyyy i.e. 28/10/2012 to 28/Oct/2012

Hi I have a problem with Date format in my code. 1st I am trying to convert today's date to yesterday's using YESTERDAY3=`perl -e '@y=localtime(time()-86400); printf "%04d/%02d/%02d",$y+1900,$y+1,$y;$y;'` And once it is done I am trying to using the yesterday date in a grep command to... (3 Replies)
Discussion started by: nithinankam
3 Replies

7. What is on Your Mind?

Place your bits - 2012 FIFA Ballon d'Or and 2012 FIFA World Coach of the Year

I have added two new sports events. The FIFA Ballon d'Or is an association football award given annually to the player who is considered to have performed the best in the previous season. It is awarded based on votes by coaches and captains of international teams, as well as journalists from... (0 Replies)
Discussion started by: ni2
0 Replies
RLOGIN(1)						    BSD General Commands Manual 						 RLOGIN(1)

NAME
rlogin -- remote login SYNOPSIS
rlogin [-468Ed] [-e char] [-l username] [-p port] host rlogin [-468Ed] [-e char] [-p port] username@host DESCRIPTION
rlogin starts a terminal session on a remote host host. rlogin first attempts to use the standard Berkeley rhosts authorization mechanism. The options are as follows: -4 Use IPv4 addresses only. -6 Use IPv6 addresses only. -8 The -8 option 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'. -E The -E option stops any character from being recognized as an escape character. When used with the -8 option, this provides a completely transparent connection. -d The -d option turns on socket debugging (see setsockopt(2)) on the TCP sockets used for communication with the remote host. -e char The -e option allows user specification of the escape character, which is ``~'' by default. This specification may be as a literal character, or as an octal value in the form nn. -l username the -l option specifies an alternate username for the remote login. If this option is not specified, your local username will be used. -p port Uses the given port instead of the one assigned to the service ``login''. May be given either as symbolic name or as number. A line of the form ``<escape char>.'' disconnects from the remote host. Similarly, the line ``<escape char>^Z'' will suspend the rlogin ses- sion, and ``<escape char><delayed-suspend char>'' suspends the send portion of the rlogin, but allows output from the remote system. By default, the tilde (``~'') character is the escape character, and normally control-Y (``^Y'') is the delayed-suspend character. All echoing takes place at the remote site, so that (except for delays) the rlogin is transparent. Flow control via ^S/^Q and flushing of input and output on interrupts are handled properly. ENVIRONMENT
The following environment variable is used by rlogin: TERM Determines the user's terminal type. SEE ALSO
rcmd(1), rsh(1), rcmd(3), hosts.equiv(5), rhosts(5), environ(7) HISTORY
The rlogin command appeared in 4.2BSD. BUGS
More of the environment should be propagated. BSD
July 16, 2005 BSD
All times are GMT -4. The time now is 06:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy