d...@198.25.22.45 password:
shell.none.net: Requesting pty.
shell.none.net: Requesting shell.
shell.none.net: Entering interactive session.
Connection to 198.25.22.45 closed.
shell.none.net: Transferred: stdin 0, stdout 478, stderr 39 bytes in 0.4
seconds
shell.none.net: Bytes per second: stdin 0.0, stdout 1285.5, stderr 104.9
shell.none.net: Exit status 0
The /var/log/messages file on the server 198.25.22.45 says:
"syslogin_perform_logout: logout() returned an error". It is almost as if
the user drd does not have the proper authority to start his shell. The
user can log in locally on tty without any problem.
I have not been able to track this error down.
Any help is greatly appreciated.
Thanks,
Duane Drake
SSH 1 or 2? Open-SSH?
Did you build from source or use RPM's? SSH is a pretty compatible service, so
you giving us all the details you can on your system/install will help us
figure out what went wrong.
Thanks,
John
I am running OpenSSH-2.1.1p4. I built it from source on RH6.2 with the
following options:
--with-tcp-wrappers
--with-ipv4-default
My sshd_config file is:
# This is ssh server systemwide configuration file.
Port 22
ListenAddress 198.25.22.45
HostKey /etc/ssh/ssh_host_key
ServerKeyBits 1024
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
PrintMotd yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
AllowUsers drd
The /etc/pam.d/sshd file is:
#%PAM-1.0
auth required /lib/security/pam_pwdb.so shadow nodelay
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_pwdb.so
password required /lib/security/pam_cracklib.so
password required /lib/security/pam_pwdb.so shadow nullok use_authtok
session required /lib/security/pam_pwdb.so
session required /lib/security/pam_limits.so
I have tried allowing root to login by making it an AllowUser and setting
PermitRootLogin to yes. Root gets in partway, then is logged out because of
securetty not letting it in.
It is a pretty well locked down system set up by following "Securing and
Optimizing Linux: RedHat Edition" by Gerhard Mourani.
The system is not on DNS yet, so I am using hosts to resolve names. Could
this be part of the problem? I created keys but the server is defualting to
password authentication, but that doesn't work either as described above.
Thanks again!
Duane Drake
"John Hovell" <john....@home.com> wrote in message
news:39AC7254...@home.com...
Duane Drake wrote:
sanjeev> May be you have not be given shell as /bin/bash
sanjeev> but /bin/falls. In the case of /bin/falls, you will be
sanjeev> allowed to connect but without any shell prompt.
This can't be the problem. sshd uses the target account's shell to run
remote commands. If the shell were /bin/false, he wouldn't be able to run
any commands, either.
--
Richard Silverman
sl...@shore.net
Thanks again,
Duane Drake
"Duane Drake" <d...@nowhere.com> wrote in message
news:39ac14e1$1...@news2.one.net...
% ssh box
-bash: ’9ttyp0: No such file or directory
-bash: h0000949969f5.ne.mediaone.net: command not found
-bash: âŒ9pts/8: No such file or directory
-bash: user-2ive2l2.dialup.mindspring.com: command not found
Connection to box closed.
(The garbage being bits and pieces from the lastlog file, including the
names of machines from which people have logged in recently).
I've only ever seen this bug when using sshd -i, but I don't know that
there aren't other circumstances that will tickle it as well.
--
Richard Silverman
sl...@shore.net