SSH problem: failing in S_RLOGINCHK

SSH problem: failing in S_RLOGINCHK

Post by J Eric Brack » Fri, 04 Oct 1996 04:00:00



I'm having trouble getting SSH up and running:

I've built SSH on two machines, one SunOS 4.1.3 and the other AIX 4.1.
I want the AIX machine to act as 'server' for shell requests from the
SunOS machine.  I am not permitted to run as root on the server, so I
start it up using a different port (I tried 7222).

The authentication always seems to fall back to a simple password
exchange, apparently failing the rhosts + RSA method, despite my best
efforts (I think I've exchanged the right public keys.)

When I run sshd with degugging on, this is what happens:

./sshd -d -p 7222 -f my_server_config -h my_ssh_host_key
debug: sshd version 1.2.13 [rs6000-ibm-aix4.1.3.0]
debug: Initializing random number generator; seed file .ssh-server/ssh_random_seed
log: Server listening on port 7222.
log: Generating 768 bit RSA key.
log: RSA key generation complete.
debug: Server will not fork when running in debugging mode.
log: Connection from 192.XXX.XXX.XXX port 2805
debug: Client protocol version 1.3; client software version 1.2.13
debug: Sent 768 bit public key and 1024 bit host key.
debug: Encryption type: idea
debug: Received session key; encryption turned on.
debug: getuserattr S_RLOGINCHK failed.                  <-- what is this?
fatal: Connection closed by remote host.
debug: Calling cleanup 0x20000ee4(0x0)

Any ideas what's wrong?

__________________________________________________________________
     ________   ________   __   ________
    /\_______\ /\_______\ /\_\ /\_______\ J. Eric Bracken, Ph.D.
   / / ______// / ____  // / // / ______/ Ansoft Corporation
  / / /__\   / / /__\/ // / // / /        Four Station Square, Suite 660
 / / ____/  / / ___  _// / // / /___      Pittsburgh, PA 15219-1119
/ / /____\ / / / \/ / / / // / /____\     (412) 261-3200 FAX (412) 471-9427

__________________________________________________________________

 
 
 

1. SSH to/from localhost works but ssh from remote fails (receives "Connection refused")

I recently upgraded to openssh-3.1 and now sshd refuses connections
from remote hosts.  Running "ssh localhost" works fine.  Trying to ssh
from remote system fails.  I have tried to force ssh2.  I verified the
remote host is not blocked in hosts.deny and that hosts.allow is
ALL:ALL.  I also verified that ipchains is not blocking requests to
port 22 (and iptables is not running).  There are no errors in
/var/log/secure.  The /etc/ssh/sshd_config is all defaults.

Here's the output running ssh client verbose from a remot host:

bash-2.03$ ssh -v -2 dhaller2.workstation
SSH Version OpenSSH_2.2.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /usr/local/etc/ssh_config
debug: ssh_connect: getuid 2028 geteuid 2028 anon 1
debug: Connecting to dhaller2.workstation [10.102.10.33] port 22.
debug: connect: Connection refused
debug: Trying again...
debug: Connecting to dhaller2.workstation [10.102.10.33] port 22.
debug: connect: Connection refused
debug: Trying again...
debug: Connecting to dhaller2.workstation [10.102.10.33] port 22.
debug: connect: Connection refused
debug: Trying again...
debug: Connecting to dhaller2.workstation [10.102.10.33] port 22.
debug: connect: Connection refused
Secure connection to dhaller2.workstation refused.
debug: writing PRNG seed to file /home/dhaller/.ssh/prng_seed

Here are the relevant rpms by running rpm -qa | grep openss
openssh-3.1p1-6
openssl-0.9.6b-28
openssh-server-3.1p1-6
openssl-devel-0.9.6b-28
openssh-clients-3.1p1-6


debug1: sshd version OpenSSH_3.1p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
socket: Address family not supported by protocol
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.

Any ideas?  

Thanks,
drew

2. List of hardware devices that work

3. can ssh-agent work between ssh-2.3 and ssh-3.5

4. Help - Xconfigurator not configurating

5. SSH client disconnects when performing certain commandline utilities (AIX 4.3.3) - SSH of Firewall problem ?

6. IDE plexwriter 12/10/32

7. Problem with ssh-agent and ssh-add

8. how many rexecd?

9. SSH - make-ssh-known-hosts nslookup problem

10. SSH-1.x for HPUX 10.20 & SSH-2 for RedHat, Digital Unix PROBLEM, HELP please !

11. supraexpress modems (28.8) problems w/dial-ins

12. Netscape plug-ins problem

13. Problems with dialing out when dial-ins are enabled