[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh-login on sparc

On Tue, Jan 23, 2001 at 12:02:57PM +0100, Thomas 'Mike' Michlmayr wrote:
> > This machine has very little installed on it as I'm using it as a 
> > firewall/gateway. It's currently running 2.2.18pre21.
> i'm running 2.2.17. my machine is also very minimal, though it's running a
> small number of services.
> did you strace your sshd to see what system calls are failing? another
> difference is that you first try to authenticate via your RSA key. maybe
> this is broken and confuses the passwd check afterwards?

Yep. I'll include the relevant bit. There is no system call failing
but seeing that is goes looking at /etc/shadow and I'm using md5 passwd's
I've also tried changing /etc/pam.d/sshd to use the md5 pam auth line
rather than the basic passwd line.

It might try the RSA check but I don't have any RSA keys for use with
SSH, it is just the default configuration tries RSA first. So what do
you have in your ~/.ssh/config that stops it from trying RSA auth
first ?

Strace output (exerpt)
open("/etc/shadow", O_RDONLY)           = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
fstat(3, {st_mode=S_IFREG|0640, st_size=744, ...}) = 0
_llseek(0x3, 0, 0, 0xefffd428, 0x1)     = 0
read(3, "root:XXXXXXXXX"..., 4096) = 744
close(3)                                = 0
munmap(0x50019000, 8192)                = 0
getpeername(4, {sin_family=AF_INET, sin_port=htons(4819), sin_addr=inet_addr("")}}, [16]) = 0
write(2, "Failed password for sauchter fro"..., 56) = 56

The other thing that is not pleasant is this

gateway:~# strace -o /tmp/sshd sshd -d
debug: sshd version OpenSSH-1.2.3
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
ptrace: umoven: Input/output error
debug: Bind to port 22 on
ptrace: umoven: Input/output error
Server listening on port 22.
Segmentation fault

I managed to grab the strace output by starting sshd first and then 
attaching strace to it. But it still issued 2 ptrace:umoven errors
on exit.


Reply to: