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
Code:
# default: off
# description: Rexecd is the server for the rexec(3) routine. The server \
# provides remote execution facilities with authentication based \
# on user names and passwords.
service exec
{
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rexecd
disable = no
server_args = -D
}
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 OSF1
rexec_r
rexec(3) Library Functions Manual rexec(3)NAME
rexec, rexec_r - Allow command execution on a remote host
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <netdb.h>
#include <unistd.h>
int rexec( char **host, int port, char *user, char *passwd, char *command, int *err_file_desc);
The following function is supported in order to maintain backward compatibility with previous versions of the operating system. int
rexec_r( char **host, int port, char *user, char *passwd, char *command, int *err_file_desc, struct hos-
tent_data *host_data);
PARAMETERS
Contains the name of a remote host that is listed in the /etc/hosts file or /etc/resolv.conf file. If the name of the host is not found in
either file, the rexec() fails. Specifies the well-known Internet port to use for the connection. A pointer to the structure that con-
tains the necessary port can be obtained by issuing the following library call: getservbyname("exec", "tcp") Points to a user ID that is
valid on the host. Points to the password of the specified user ID on the host. Points to the name of the command to be executed at the
remote host. Specifies the file to which standard error from the remote command is sent.
If the err_file_desc parameter is 0 (zero), the standard error of the remote command is the same as standard output. No provision is made
for sending arbitrary signals to the remote process. In this case, however, it may be possible to send out-of-band data to the remote com-
mand.
If the err_file_desc parameter is nonzero, an auxiliary channel to a control process is set up, and a descriptor for it is placed in the
err_file_desc parameter. The control process provides diagnostic output from the remote command on this channel and also accepts bytes as
signal numbers to be forwarded to the process group of the command. This diagnostic information does not include remote authorization
failure, since this connection is set up after authorization has been verified. Per-thread data for reentrant version.
DESCRIPTION
The rexec() (remote execution) function allows the calling process to execute commands on a remote host.
If the rexec() connection succeeds, a socket in the Internet domain of type SOCK_STREAM is returned to the calling process and is given to
the remote command as standard input and standard output.
The user and passwd parameters specify a valid user ID and the associated password for that user on the remote host. If the user and
passwd parameters are not supplied, the rexec() function takes the following actions until finding a user ID and password to send to the
remote host: It searches the current environment for the user ID and password on the remote host. It searches the user's home directory
for a file called $HOME/.netrc that contains a user ID and password. It prompts the user for a user ID and password.
Note that action 3 does not apply when using rexec_r().
NOTES
The rexec_r() function is the reentrant version of rexec(). It is supported in order to maintain backward compatibility with previous ver-
sions of the operating system. The netdb.h header file defines the hostent_data structures.
RETURN VALUES
Upon successful completion, the system returns a socket descriptor to the remote command. Otherwise, a value of -1 is returned, indicating
that the specified hostname does not exist.
FILES
Contains hostnames and their addresses for hosts in a network. This file is used to resolve a hostname into an Internet address. Contains
the name server and domain name. Contains automatic login information.
RELATED INFORMATION
Functions: getservbyname(3), rcmd(3), rresvport(3), ruserok(3).
Commands: rexecd(8). delim off
rexec(3)