Research
.
Skip Search Box

SELinux Mailing List

Re: ssh, ad nauseum

From: Stephen Smalley <sds_at_tislabs.com>
Date: Tue, 9 Oct 2001 11:30:09 -0400 (EDT)

On 9 Oct 2001, Justin R. Smith wrote:

> I rebooted my normal (i.e., non-selinux) kernel and ssh'ed to my office
> machine from home and was asked for a password (so it didn't use my
> 'authorized_users' file). Then I remembered that I didn't restore the
> vanilla version of the sshd --- I was still using the selinux version.
>
> I then replaced the selinux sshd with the original one and rebooted.
> After this ssh worked normally. So, perhaps something in the selinux
> sshd is responsible for my little problem (always having to type a
> password to use ssh).

This seems unlikely. The SELinux openssh patch merely changes sshd to set the security context on the pty and to run the user process with an appropriate security context.

What version of openssh are you running on the home machine and the office machine? Are you using the stock RH7.1 programs or a newer openssh package? If the latter, did you try applying our openssh patch to the newer openssh package and then configuring, building, and installing that modified openssh in the same manner that you installed the original one? The patch applies fine to openssh-2.9.9p2 aside from a reject on a spurious extra line.

When you generated your keys, did you generate keys for protocol 1 or protocol 2 (default for ssh-keygen is 1, unless you use the -t option)? If you are using protocol 1, does 'ssh -1 machine' work for you? What does 'ssh -v -1 machine' show?

--
Stephen D. Smalley, NAI Labs
ssmalley@nai.com




--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Tue 9 Oct 2001 - 11:40:10 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service