| PeteDotCom -> Networking ->
Linux -> berkeley remote command ->
| s
e t u p | t
e s t i n g | p
r o b l e m s | c
o m m e n t s |
| s
e t u p |
the berkeley remote
command
using an text editor to add following lines in
/etc/hosts.equiv:
g2c2.3604e1 g2c4.3604e1 #no sign or +
sign means granting permission -g3c2.3604e1 #- sign means
deny
will grant users loggin in this host without entering
password if the users have account in this host
when any
conlict (grant or deny) between these three files, the hosts take
the following precedence:
1. .rhosts under /root 2.
/etc/hosts.equiv 3. .rhosts under normal user's home
directory
| t e s t i n
g | rlogin remotehost
ie
rlogin g2c2
to log in under another account, use the option
-l. for example to log into remote host g215-1 as user joe,
type: rlogin -l joe g215-1
if the remote host asks for
password when you are loggin in, it may be cause by: the remote
host may not include your host as equivalent the remote host may
not recognise your login account your password on your local host
does not match your password on the remote host. One solution to
this problem is to make sure the following is in the .rhosts file in
the user account you want to log in to
otherhostname
username
where otherhostname is the official name of the host
where you're logged in. username is your account name.
command rsh enables
you to execute a command through the shellon a remote host and
display the result on your local screen. rsh remotehost
command
| p r o b l e
m s & s o l u t i o n s |
Problem: Not being able to log into another
host without password.
Solution: Make sure
you edit .rhosts under normal user's home directory. This was a
silly mistake I made.
Problem: Not being
able to log into another another user's account on another
host.
Solution: add the
following to the .rhosts file in the user's base account
otherhostname
username
where otherhostname is the official name of the host
where you're logged in. username is your account name.
| c o m m e n
t s |
This is a good way to get
file from other machines. |