# remote shell command

**URL:** <https://community.unix.com/t/remote-shell-command/139225>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [August 8, 2001, 1:50am UTC](https://community.unix.com/t/remote-shell-command/139225 "2001-08-08T01:50:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yatno](https://community.unix.com/letter_avatar/yatno/32/6_449c533f586939b6e5f246632a46421f.png) [@yatno](https://community.unix.com/u/yatno)\
**Post date:** [August 8, 2001, 1:50am UTC](https://community.unix.com/t/remote-shell-command/139225/1 "2001-08-08T01:50:23Z")

</div>

1. is there anyone know what is the record format for file .rhosts ?
2. where to put .rhosts file ? is it on caller or on callee ?
3. will remsh command works if callee is not unix platform (say AS400) ?
4. best regards, Yatno

---

<div class="post-metadata">

**Author:** ![yellowfish](https://community.unix.com/letter_avatar/yellowfish/32/6_449c533f586939b6e5f246632a46421f.png) [@yellowfish](https://community.unix.com/u/yellowfish)\
**Post date:** [August 8, 2001, 2:40am UTC](https://community.unix.com/t/remote-shell-command/139225/2 "2001-08-08T02:40:10Z")

</div>

try man page first  
$man rhosts  
--T.H.

---

<div class="post-metadata">

**Author:** ![Michael](https://community.unix.com/letter_avatar/michael/32/6_449c533f586939b6e5f246632a46421f.png) [@Michael](https://community.unix.com/u/Michael)\
**Post date:** [August 8, 2001, 8:04am UTC](https://community.unix.com/t/remote-shell-command/139225/3 "2001-08-08T08:04:30Z")

</div>

1. hostname username
2. in home directory from user for example user root in /
3. should be

Regards  
Michael

---

<div class="post-metadata">

**Author:** ![S.Vishwanath](https://community.unix.com/letter_avatar/s.vishwanath/32/6_449c533f586939b6e5f246632a46421f.png) [@S.Vishwanath](https://community.unix.com/u/S.Vishwanath)\
**Post date:** [August 10, 2001, 5:26am UTC](https://community.unix.com/t/remote-shell-command/139225/4 "2001-08-10T05:26:24Z")

</div>

1. \<your local unix machines host name/Ip Address \> \<ur user name\>

for Ex:- 12.12.23.43 nicholas  
This is ur local system's IP address & local user name...

1. Please place this file into users home direcotry on the remote systems in to which u want to try remote activities.

Ex: If u want to login on the remote system as root, then place this file in the root directory itself i.e. under '/'

If u want to login on the remote system as xxxx, then place this file in the /usr/users/xxxx (this is the home directory of the users xxxxx on the remote system).

1. I'm not shure about this....

Do let us know....

---

<div class="post-metadata">

**Author:** ![patvdv](https://community.unix.com/user_avatar/community.unix.com/patvdv/32/21_2.png) [@patvdv](https://community.unix.com/u/patvdv)\
**Post date:** [August 10, 2001, 8:44am UTC](https://community.unix.com/t/remote-shell-command/139225/5 "2001-08-10T08:44:29Z")

</div>

A tip if you are having problems using remsh etc commands even when you think your .rhosts files are setup correctly:

Use both short and FQDN (fully qualified domain names) in your .rhosts files:

jumbo root  
[jumbo.amazon.com](http://jumbo.amazon.com) root

Also the actual \*order\* of short and FQDN can be important:

[jumbo.amazon.com](http://jumbo.amazon.com) root  
jumbo root

HP-UX's MC/Serviceguard is known to have issues with this.
