Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-20-2001, 12:29 PM   #1
LQ Newbie
Registered: Oct 2001
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
rexec hangs


I am attempting to use rexec on an AIX box to execute commands on a SuSE 7.0 box, but after rexec asks for my username and password it just hangs forever. On the remote Linux box I have ALL : ALL in /etc/hosts.allow and exec is uncommented in both /etc/services and /etc/inetd.conf. I've trawlled the web for info but nothing I've found has helped. rexec -d is no help either, it just hangs after log in. If anybody can offer some advice it would be much appreciated. Thanks, Austin.
Old 03-22-2007, 09:35 AM   #2
LQ Newbie
Registered: Mar 2007
Location: Stuttgart (Germany)
Distribution: SuSE
Posts: 1

Rep: Reputation: 0
rexec hangs / Can't open Display


this is not really a direct response since your question is long ago, but I've got the same problem with SuSE 10.0.:
rexec hangs directly after entering the password for the account of the remote host.
I've got also an error, if I tried to open a X window from the remote host on my local one:
Can't open display
But the environment variable DISPLAY was set correctly like:
$ echo $DISPLAY
and the RSA-based host authentication key was configured like:
$ xauth list MIT-MAGIC-COOKIE-1 52bff0d2df3bcb22eebc83d7428d193d
Both problems where caused by the SuSE Firewall, since it was configured very strictly and dropping every incoming packet from remote host. You can check this by tracing the firewall log file in parallel to the above requests. If you get any -DROP- message like the following with the SRC address of your remote host and the DST address of your local host:

$ tail -f /var/log/firewall
Mar 14 15:52:58 my_local_host kernel: SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=00:0b:bd:ac:92:9b:00:d0:95:dd:09:32:08:00 SRC= DST= LEN=48 TOS=0x00 PREC=0x00 TTL=59 ID=50390 DF PROTO=TCP SPT=59740 DPT=6000 WINDOW=24820 RES=0x00 SYN URGP=0 OPT (01010402020405B4)

Now you are close to the problem, because firewall informs you that he has dropped a TCP packet.

Try to configure the firewall with YaST. At first switch it off and try again to enter the rexec command. It should work properly. Now configure the interface (ethernet id) either as internal, if your host is part of an internal protected network, or open the dedicated DPT port (i.e. 6000) to allow remote requests.

Some words about security:
rexec is insecure, you should use ssh instead of. Even the creation of a remote X window is more easily and secure. In my certain circumstances the local machine is part of a internal network, protected by some firewall and proxy servers. Even there are some hosts in the local network with a stone age kernel installation, don't understanding ssh. Therefore I used the above solution.

So have luck and take care


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rexec problem cuencano AIX 1 06-17-2005 04:02 PM
Using rps and rexec for X-Win32 from Windows XP zzhang2005 Linux - Networking 0 06-09-2005 02:35 PM
Trying to get rexec to work. When incoming rexec, linux host responds 'Where are you krulr Red Hat 1 09-12-2003 11:20 AM
Unable to use rexec in Exceed chakri_in5 Linux - Networking 2 08-13-2003 08:15 AM
Installation of Tivoli - uses rexec ? stevew71 Linux - Software 1 07-09-2002 11:09 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration