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

conserver and ssh

Robert Berger robert.karl.berger@gmail.com
Fri, 4 Jan 2013 10:16:07 GMT


Hi,

I try to create something like a central place to configure various
things around conserver.

First I just would like to have conserver to ssh to various machines,
but I don't get a prompt.

Here is what I do on Ubuntu 12.04 LTS

student@vlab2-gateone:/etc/conserver$ cat /etc/services | grep CON
#console         782/tcp         CONSERVER_PORT  # Conserver
console         3109/tcp        CONSERVER_PORT  # Conserver

student@vlab2-gateone:/etc/conserver$ cat /etc/hosts
127.0.0.1       localhost.vlab2 localhost
#conserver console
127.0.1.1       vlab2-gateone vlab2-gateone.vlab2
192.168.2.132   console conserver


# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

sudo /etc/init.d/conserver-server

logfiles:

root@vlab2-gateone:/var/log/conserver# cat server.log
[Fri Jan  4 10:36:21 2013] conserver (23621): conserver.com version 8.1.18
[Fri Jan  4 10:36:21 2013] conserver (23621): started as `conservr' by
`conservr'
root@vlab2-gateone:/var/log/conserver# cat ssh.log
[-- Console up -- Fri Jan  4 10:36:21 2013]

student@vlab2-gateone:/etc/conserver$ cat conserver.cf
default * {
# The '&' character is substituted with the console name
#logfile /var/consoles/&;
logfile /var/log/conserver/&.log;
# timestamps every hour with activity and break logging
timestamp 1hab;
# include the 'full' default
include full;
 sslenabled yes;
 sslrequired yes;
}

console ssh {
master 192.168.2.132;
rw *;
type exec;
exec ssh 192.168.2.160;
}

### define a group of users
group sysadmin {
users student;
}

### list of clients we allow
access * {
allowed 192.168.2.0/24;
trusted 127.0.0.1;
}

student@vlab2-gateone:/etc/conserver$ sudo cat conserver.passwd
*any*:*passwd*

student@vlab2-gateone:/etc/conserver$ cat server.conf
OPTS='-p 3109  '
ASROOT=


student@vlab2-gateone:/etc/conserver$ ldd /usr/sbin/conserver
        linux-gate.so.1 =>  (0x00a3d000)
        libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0x00948000)
        libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0x009f1000)
        libssl.so.1.0.0 => /lib/i386-linux-gnu/libssl.so.1.0.0 (0x001e8000)
        libcrypto.so.1.0.0 => /lib/i386-linux-gnu/libcrypto.so.1.0.0
(0x006a4000)
        libwrap.so.0 => /lib/i386-linux-gnu/libwrap.so.0 (0x00f48000)
        libpam.so.0 => /lib/i386-linux-gnu/libpam.so.0 (0x00c0d000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x0023e000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x001a3000)
        libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x00110000)
        libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0x00eb2000)
        /lib/ld-linux.so.2 (0x008a5000)


student@vlab2-gateone:/etc/conserver$ console -D -p 3109 ssh
console: DEBUG: [cutil.c:2263] ProbeInterfaces(): ifc_len==64 max_count==2
console: DEBUG: [cutil.c:2318] ProbeInterfaces(): name=lo addr=127.0.0.1
console: DEBUG: [cutil.c:2318] ProbeInterfaces(): name=eth0
addr=192.168.2.132
console: DEBUG: [cutil.c:355] AllocString(): 0x91240d8 created string #3
console: DEBUG: [cutil.c:355] AllocString(): 0x9124178 created string #4
console: DEBUG: [cutil.c:355] AllocString(): 0x91241c0 created string #5
console: DEBUG: [console.c:2477] cmds[1] = call
console: DEBUG: [console.c:2477] cmds[0] = attach
console: DEBUG: [console.c:611] GetPort: hostname=console (console),
ip=192.168.2.132, port=3109
console: DEBUG: [cutil.c:355] AllocString(): 0x9124818 created string #6
console: DEBUG: [cutil.c:355] AllocString(): 0x9124750 created string #7
console: DEBUG: [cutil.c:355] AllocString(): 0x9124768 created string #8
console: DEBUG: [cutil.c:355] AllocString(): 0x9124780 created string #9
console: DEBUG: [console.c:769] ReadReply: `ok^M^J'
console: DEBUG: [cutil.c:355] AllocString(): 0x9124fe8 created string #10
console: DEBUG: [cutil.c:355] AllocString(): 0x9125000 created string #11
console: DEBUG: [cutil.c:355] AllocString(): 0x9125060 created string #12
console: DEBUG: [console.c:769] ReadReply: `encryption required^M^J'
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124818 string
destroyed (count==11)
console: encryption required
console: DEBUG: [cutil.c:329] DestroyString(): 0x91241c0 string
destroyed (count==10)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9125060 string
destroyed (count==9)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9125000 string
destroyed (count==8)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124fe8 string
destroyed (count==7)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124780 string
destroyed (count==6)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124768 string
destroyed (count==5)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124750 string
destroyed (count==4)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124178 string
destroyed (count==3)
console: DEBUG: [cutil.c:329] DestroyString(): 0x91240d8 string
destroyed (count==2)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124020 string
destroyed (count==1)
console: DEBUG: [cutil.c:329] DestroyString(): 0x9124008 string
destroyed (count==0)


Please advise what I'm doing wrong.

Regards,

Robert