- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SOme doubts please clarify
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:14 PM
11-14-2005 05:14 PM
i want to login 2nd server from 1st telnet server without using telnet or rlogin or ssh.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:17 PM
11-14-2005 05:17 PM
Re: SOme doubts please clarify
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:19 PM
11-14-2005 05:19 PM
Re: SOme doubts please clarify
Ifi login on Machine A now i want to go to Maching B without telnet or ssh or rsh
ot
I want to run vmstat from Machnine A for Machine B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:26 PM
11-14-2005 05:26 PM
Solutioni) Using remsh / rexec
# remsh -l root Machine2 -n "vmstat 5,5" > machine2_vmstat.log
ii) telnet piping:
(
echo "root"
sleep 2
echo "
sleep 2
echo "vmstat 5,5"
sleep 2
echo "exit"
sleep 1
) | telnet Machine2
Change account name "root" and passwd there in script.
iii) Setup ssh without password prompting:
ssh root@Machine2
iv) Expect scripting
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:44 PM
11-14-2005 05:44 PM
Re: SOme doubts please clarify
for running REMSH remshd Service should be running . This service checked for two files before executing any command i.e /etc/hosts.equiv & .rhosts file in the home directory of user .
One more thing always use the full path at the time of execution of command
hope this will close the issue
Regards
Vikas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 06:08 PM
11-14-2005 06:08 PM
Re: SOme doubts please clarify
remshd: Login incorrect
and also in my server there is no
/etc/hosts.equiv file
.rhosts in my home dire
pls clarify to me how to go
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 06:26 PM
11-14-2005 06:26 PM
Re: SOme doubts please clarify
There are two ways all "r" (rlogin,rcp etc) commands will work.
One is host equivalancy and other is user equivalency
In host equivlency u make a file /etc/hosts.equiv.
If a remote machin's user name is in that file, that user can access this server, provided a same user name exists in this server.
If a -ve sign with hostname is there in the file then all the users in that machine cannot access this machine
If only a +ve sign is there in this file then all hosts can access this server
In user equivency $HOME/.rhosts is used. It has priority over /etc/hosts.equiv
In .rhosts file put the machine name and user name. Then that user from that particular machine can access this machine.
For eg:
MachineA user1
If there is a +ve sign and a user name then from any machine that user can access this server.
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:56 PM
11-14-2005 07:56 PM