Hi all,
I´m replacing an old linux enterprise redhat 4.5 by a new one linux enterprise redhat 6.
In both I use rexec as a communication between the front end and the user.
In the old one, when the user connects, the communication establishes quickly (less than 3 sec). But in the new one, the communication establishes very slow (30 sec. aprox.).
I have reviewed the configurations and the only difference is:
in the old one, the parameter of log_on_success += USERID and log_on_failure += USERID does not exists.
But if I disable those parameters in /etc/xinet.d/rexec in the new one, I can not log.
Anybody have faced a similar problem?
Thanks in advance
Hello,
in Suse (SLES) it's:
Maybe you'll Need some more Parameters in the new one.
Regards
Last edited by RudiC; 06-03-2016 at 12:25 PM..
Reason: Code tags added
When I ssh to my box, an Ultra 5. I get prompted for password immediately. I enter it and have to wait sometimes a full minute for it to prompt for a password.
The same thing happens when i try to ftp to the box, it will say connected, but it takes forever to prompt for password, and... (2 Replies)
Running open solaris on a e420 that I recently picked up. Having issues sshing to it from either of my Linux boxes as its very slow to login (from the solaris box to the linux box it connects just fine.
Here is the output of ssh -vvv. I have hightlighted where it seems the slowdown is. Does... (0 Replies)
Hi,
Quick question, I'm messing about with a test box at work (system v)
Basically I telnet to the server.
Get the following :
SunOS 5.9
login: (my name)
Password: (my password)
Last login: Thu Feb..... yada yada
(At this stage it takes over a minute to come to display the... (5 Replies)
Hi All,
I have problem when i write my user name to login to my server late (about 10 min) to give me field of password
if u know how i can solve it?
Thanks (4 Replies)
Hi Guys and Girls, I know this is a common question but I've searched and we've tried the suggestions without luck. When I log into the box via SSH from a windows machine I get a 1 min 20 sec delay. If we add my IP address and machine name to /etc/hosts then I get an instant login. I would be happy... (12 Replies)
I have some sample code that's supposed to ssh to another machine using Net::SSH::Perl, execute a command, and print
the output of that command. It's very basic, and it works. However, I noticed that upon logging in:
$ssh->login('username','password');
It takes roughly 10-13 seconds to... (2 Replies)
Hi, I have the following issue, when I tried to login to an Openindiana remote server through ssh It takes to long to ask me for the password. So i tried -v and I realize that sshd hangs here " debug1: SSH2_MSG_SERVICE_ACCEPT received " for at least 2 minutes. Then I can log in and everything is... (2 Replies)
Version: Oracle Enterprise Linux 6.3
Running on VMWare Workstation
When I login to my Linux VM from putty, the third line prompting for password comes only after few seconds.
login as: root
Access denied
root@192.168.0.235's password: ---> It takes around 5 seconds to get this prompt
I... (1 Reply)
Hello I have a LPAR AIX 6.1 on Power VM, Vio 2.2.3 and when I execute a rcp to this machine, I cant, simultaneosly, rlogin, telnet, rsh to this same LPARt. This commands stay hanged till the copy end, and Imeddiatlely the comand is executed (rlogin, telnet, rhs, etc).
Someone can give me... (1 Reply)
Discussion started by: artur_dietrich
1 Replies
LEARN ABOUT OPENSOLARIS
rexec_af
rexec(3SOCKET) Sockets Library Functions rexec(3SOCKET)NAME
rexec, rexec_af - return stream to a remote command
SYNOPSIS
cc [ flag ... ] file... -lsocket-lnsl [ library... ]
#include <netdb.h>
#include <unistd.h>
int rexec(char **ahost, unsigned short inport, const char *user,
const char *passwd, const char *cmd, int *fd2p);
int rexec_af(char **ahost, unsigned short inport, const char *user,
const char *passwd, const char *cmd, int *fd2p, int af);
DESCRIPTION
The rexec() and rexec_af() functions look up the host ahost using getaddrinfo(3SOCKET) and return -1 if the host does not exist. Otherwise
ahost is set to the standard name of the host. The username and password are used in remote host authentication. When a username and pass-
word are not specified, the .netrc file in the user's home directory is searched for the appropriate information. If the search fails, the
user is prompted for the information.
The rexec() function always returns a socket of the AF_INET address family. The rexec_af() function supports AF_INET, AF_INET6, or
AF_UNSPEC for the address family. An application can choose which type of socket is returned by passing AF_INET or AF_INET6 as the address
family. The use of AF_UNSPEC means that the caller will accept any address family. Choosing AF_UNSPEC provides a socket that best suits the
connectivity to the remote host.
The port inport specifies which DARPA Internet port to use for the connection. The port number used must be in network byte order, as sup-
plied by a call to htons(3XNET). The protocol for connection is described in detail in in.rexecd(1M).
If the call succeeds, a socket of type SOCK_STREAM is returned to the caller, and given to the remote command as its standard input and
standard output. If fd2p is non-zero, an auxiliary channel to a control process is set up and a file descriptor for it is placed in *fd2p.
The control process returns diagnostic output (file descriptor 2), from the command on the auxiliary channel. The control process also
accepts bytes on this channel as signal numbers to be forwarded to the process group of the command. If fd2p is 0, the standard error (file
descriptor 2) of the remote command is made the same as its standard output. No provision is made for sending arbitrary signals to the
remote process, other than possibly sending out-of-band data.
There is no way to specify options to the socket() call made by the rexec() or rexec_af()functions.
RETURN VALUES
If rexec() succeeds, a file descriptor number is returned of the socket type SOCK_STREAM and the address family AF_INET. The parameter
*ahost is set to the standard name of the host. If the value of fd2p is other than NULL, a file descriptor number is placed in *fd2p which
represents the standard error stream of the command.
If rexec_af() succeeds, the routine returns a file descriptor number of the socket type SOCK_STREAM in the address family AF_INET or
AF_INET6, as determined by the value of the af parameter.
If either rexec() or rexec_af() fails, -1 is returned.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
This interface is Unsafe in multithreaded applications. Unsafe interfaces should be called only from the main thread.
SEE ALSO in.rexecd(1M), getaddrinfo(3SOCKET), gethostbyname(3NSL), getservbyname(3SOCKET), htonl(3XNET), socket(3SOCKET), attributes(5)SunOS 5.11 10 Feb 2004 rexec(3SOCKET)