ssh chroot-ed

From: Ruben Alvarez Timon (ralvarez@iso.vilspa.esa.es)
Date: Tue Oct 08 2002 - 11:20:32 EDT


Hi All,

I have created a chroot jail on a Solaris 8 machine. From that jail I want to
be able to run telnet, ftp and ssh. For the time being telnet and ftp
are working properly, but as far as ssh is concerned it works if I use
publickey as authentication method but it doesn't if I use password.

This is the output of the truss command (only the last lines):

open64("/etc/ssh/ssh_known_hosts", O_RDONLY) = 4
fstat64(4, 0xFFBEC9F0) = 0
ioctl(4, TCGETA, 0xFFBEC97C) Err#25 ENOTTY
read(4, " h o s t 0 1 , 1 9 2 . 1".., 8192) = 5693
llseek(4, 0, SEEK_CUR) = 5693
close(4) = 0
open64("/.ssh/known_hosts", O_RDONLY) = 4
fstat64(4, 0xFFBEC9F0) = 0
ioctl(4, TCGETA, 0xFFBEC97C) Err#25 ENOTTY
read(4, 0x00118CA4, 8192) = 0
llseek(4, 0, SEEK_CUR) = 0
close(4) = 0
open64("/etc/ssh/ssh_known_hosts", O_RDONLY) = 4
fstat64(4, 0xFFBEC9F0) = 0
ioctl(4, TCGETA, 0xFFBEC97C) Err#25 ENOTTY
read(4, " h o s t 0 1 , 1 9 2 . 1".., 8192) = 5693
llseek(4, 0, SEEK_CUR) = 5693
close(4) = 0
write(3, "\0\0\0\f\n15\0\0\0\0\0\0".., 16) = 16
write(3, " xAEA195 ! S l0303 3 "D3".., 48) = 48
poll(0xFFBEDA60, 1, -1) = 1
read(3, " 8 < yBECF AAA wB6A18FCF".., 8192) = 48
write(3, " s *85E6CB hBF1B O ~C5 J".., 64) = 64
poll(0xFFBED9E8, 1, -1) = 1
read(3, "B8 w98 [D1 K1FA3ADCF "EC".., 8192) = 80
stat64("/.ssh/identity", 0xFFBEF7E0) Err#2 ENOENT
stat64("/.ssh/id_rsa", 0xFFBEF7E0) Err#2 ENOENT
stat64("/.ssh/id_dsa", 0xFFBEF7E0) Err#2 ENOENT
write(3, "CBC9 n % sF819 Y898B zCF".., 96) = 96
poll(0xFFBED9E8, 1, -1) = 1
read(3, "CE ,EF L !DB02D6 F LF0EF".., 8192) = 80
open64("/dev/tty", O_RDWR) Err#6 ENXIO
open64("/dev/tty", O_RDWR) Err#6 ENXIO
write(3, " v91 6 ACD Q lE1E289BB o".., 144) = 144
poll(0xFFBED9E8, 1, -1) = 1
read(3, "A31C17EAC7 : @13 SA7 mE1".., 8192) = 80
Permission denied, please try again.write(2, " P e r m i s s i o n d".., 36)
= 36

write(2, "\r\n", 2) = 2
open64("/dev/tty", O_RDWR) Err#6 ENXIO
open64("/dev/tty", O_RDWR) Err#6 ENXIO
write(3, "C8 ZC71F1F :1890 #82 5 j".., 144) = 144
poll(0xFFBED9E8, 1, -1) = 1
read(3, "D1C2 } r H XAB1F c B01 3".., 8192) = 80
Permission denied, please try again.write(2, " P e r m i s s i o n d".., 36)
= 36

write(2, "\r\n", 2) = 2
open64("/dev/tty", O_RDWR) Err#6 ENXIO
open64("/dev/tty", O_RDWR) Err#6 ENXIO
write(3, "AFD0DC8DDF aCE + M `19 (".., 144) = 144
poll(0xFFBED9E8, 1, -1) = 1
read(3, "A0FCD4F1E186A3 ? E95 nE9".., 8192) = 80
Permission denied (publickey,password,keyboard-interactive,hostbased).write(2,
" P e r m i s s i o n d".., 70) = 70

write(2, "\r\n", 2) = 2
shutdown(3, 2, 1) = 0
close(3) = 0
llseek(0, 0, SEEK_CUR) = 28951
_exit(255)

Could anybody please give me a hand with this ?

Thanks in advance,

Ruben
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:04 EDT