- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error "rcmd: Lost connection"
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
03-26-2006 09:09 PM
03-26-2006 09:09 PM
There is a connection/setup issue with our rp-4440 machine running under HP-Ux-11. We can not do a "remsh/rlogin" to this machine, as evident from the following error:
# rlogin localhost
rcmd: Lost connection
# remsh localhost
rcmd: Lost connection
However, a similar machine with the same hardware and network configuration allows "remsh/rlogin".
Any help will be appreciated. Thanks !
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:14 PM
03-26-2006 09:14 PM
Re: Error "rcmd: Lost connection"
"rcmd: Lost connection" means the remote hosts did not accept socket request
Check /var/adm/syslog/syslog.log for any messages related to rcp.
ps -ef|egrep -i 'remsh|rlogin|rexec|rsh'
netstat -an | grep -i 513
netstat -an | grep -i 514
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:19 PM
03-26-2006 09:19 PM
Re: Error "rcmd: Lost connection"
# grep 'remote' /etc/services
# grep 'rlogin' /etc/inetd.conf
Are they being without comment?
/etc/inetd.conf
login stream tcp nowait root /usr/lbin/rlogind rlogind
klogin stream tcp nowait root /usr/lbin/rlogind rlogind -K
/etc/services
exec 512/tcp # remote execution, passwd required
login 513/tcp # remote login
who 513/udp whod # remote who and uptime
shell 514/tcp cmd # remote command, no passwd used
Else configure accordingly and reconfigure inetd as,
# inetd -c
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:21 PM
03-26-2006 09:21 PM
Re: Error "rcmd: Lost connection"
Check /var/adm/syslog/syslog.log for any messages related to rcp.
- No such messages were found in syslog.log
netstat -an | grep -i 513
- tcp 0 0 *.513 *.* LISTEN
netstat -an | grep -i 514
- tcp 0 0 *.514 *.* LISTEN
udp 0 0 *.514 *.*
50083b80 stream 0 0 0 507e5140 0 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:27 PM
03-26-2006 09:27 PM
SolutionPlease check /etc/inetd.conf file.how many remsh and rlogin? if yes, then there only show
kshell stream tcp nowait root /usr/lbin/remshd remshd -K
klogin stream tcp nowait root /usr/lbin/rlogind rlogind -K
if you have
shell stream tcp nowait root /usr/sbin/tcpd in.rshd
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
comment them & after that run this command 'inetd -c'
Then check rlogin hostname and see the /var/adm/syslog/syslog.log file.
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:27 PM
03-26-2006 09:27 PM
Re: Error "rcmd: Lost connection"
# grep -Ev '^#|^$' /var/adm/inetd.sec
Some entries are there to block.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:35 PM
03-26-2006 09:35 PM
Re: Error "rcmd: Lost connection"
# grep -Ev '^#|^$' /var/adm/inetd.sec
dtspc allow 127.0.0.1 loopback testsrv2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:38 PM
03-26-2006 09:38 PM
Re: Error "rcmd: Lost connection"
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:44 PM
03-26-2006 09:44 PM
Re: Error "rcmd: Lost connection"
1. Commented the following lines in /etc/inetd.conf
shell stream tcp nowait root /usr/sbin/tcpd in.rshd
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
2. Reconfigured inetd as,
# inetd -c
Regards n thanks again,
Burhan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2006 09:47 PM
03-26-2006 09:47 PM