I followed all your instruction, sshd is running, netstat -a gives,
tcp 0 0 *:ssh *:* LISTEN The only problem is that "sshd -v" does not get hit. I start sshd -d then ssh localhost [root@bp6 log]# sshd -d 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. debug1: Server will not fork when running in debugging mode. --------- my local host Connection from 128.42.20.87 port 33087 debug1: Client protocol version 2.0; client software version OpenSSH_3.1p1 debug1: match: OpenSSH_3.1p1 pat OpenSSH* Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-1.99-OpenSSH_3.1p1 debug1: list_hostkey_types: ssh-rsa,ssh-dss debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: client->server aes128-cbc hmac-md5 none debug1: kex: server->client aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received WARNING: /etc/ssh/moduli does not exist, using old modulus debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent debug1: dh_gen_key: priv key bits set: 128/256 debug1: bits set: 501/1024 debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT debug1: bits set: 490/1024 debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: KEX done debug1: userauth-request for user bpeng service ssh-connection method none debug1: attempt 0 failures 0 debug1: Starting up PAM with username "bpeng" debug1: PAM setting rhost to "bp6.stat.rice.edu" Failed none for bpeng from 128.42.20.87 port 33087 ssh2 ----------------------- something related to PAM ----------- debug1: userauth-request for user bpeng service ssh-connection method publickey debug1: attempt 1 failures 1 debug1: test whether pkalg/pkblob are acceptable debug1: temporarily_use_uid: 500/500 (e=0) debug1: trying public key file /home/bpeng/.ssh/authorized_keys debug1: restore_uid debug1: temporarily_use_uid: 500/500 (e=0) debug1: trying public key file /home/bpeng/.ssh/authorized_keys2 debug1: restore_uid Failed publickey for bpeng from 128.42.20.87 port 33087 ssh2 debug1: userauth-request for user bpeng service ssh-connection method keyboard-interactive debug1: attempt 2 failures 2 debug1: keyboard-interactive devs debug1: auth2_challenge: user=bpeng devs= debug1: kbdint_alloc: devices '' Failed keyboard-interactive for bpeng from 128.42.20.87 port 33087 ssh2 debug1: userauth-request for user bpeng service ssh-connection method password debug1: attempt 3 failures 3 debug1: PAM Password authentication accepted for user "bpeng" Accepted password for bpeng from 128.42.20.87 port 33087 ssh2 debug1: Entering interactive session for SSH2. Then, I try from another machine There is NO debug info on the server side. Can you see what is going on? Thanks. Bo On Wed, Aug 14, 2002 at 07:25:47PM -0700, Al Sparks wrote: > First, you said you > /sbin/service sshd -start > Probably a typo, but you're not supposed to have "-" in front. > Assuming that was done correctly, try > $ ps -aux | egrep sshd > and make sure there's a sshd process running. > Also try > $ netstat -a > and make sure there's something "LISTEN"ing on the "*:ssh" port. > If all that is true, kill sshd. Then, probably as root, run > # sshd -d > and on the client end run > $ ssh -v bp6.stat.rice.edu > and see what the output is on both machines. If the daemon on > bp6.stat.rice.edu is getting "hit", then you'll see output from > the debug sshd. On the client side, you'll also see debug output. > That may (but not always) give you some clues. > One other thing to check before doing all that is /var/log/messages to > see if the daemon you were running was giving any errors. > === Al > --- Bo Peng <[EMAIL PROTECTED]> wrote: > > I installed Redhat linux 7.3 without openssh-server. I then downloaded > > and installed openssh-server-3.1p1-6. However, when I started sshd via > > /sbin/services sshd -start, I could not connect to my machine from any > > other machine. I always get > > "FATAL: Connecting to bp6.stat.rice.edu failed: Connection Refused" > > > > I believe that my ssh-server is installed and running since I can ssh > > localhost. My ssh client is working OK since I can connect to other > > machines. I checked /etc/ssh/sshd_config (I was told that I need to > > change nothing.) and found nothing wrong. I also checked > > /etc/hosts.allow and ... > > > > Where else might I do wrong? > > > > Thanks. > > Bo > > > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > > https://listman.redhat.com/mailman/listinfo/redhat-list > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list