git clone https://code.google.com/p/netopeer
Hi Radek,
I have been playing around w/ netopeer-server-sl for a few days. But as I try to switch to use netopeer-server today, I can't connect to the server.
netconf> connect 127.0.0.1
libnetconf WARNING: Unable to check against the knownhost file (/home/jzhao/.ssh/netconf_known_hosts).
The authenticity of the host '127.0.0.1' cannot be established.
RSA key fingerprint is 38:d7:cf:56:f5:ef:ad:b1:b8:4e:8c:05:62:26:33:56.
Are you sure you want to continue connecting (yes/no)? yes
libnetconf WARNING: Writing /home/jzhao/.ssh/netconf_known_hosts failed!
jz...@127.0.0.1 password:
libnetconf ERROR: Server has closed the communication socket
libnetconf ERROR: Malformed message received, closing the session .
connect: connecting to the 127.0.0.1 failed.
netconf>
Here is what I did before lanuching netopeer-cli:
1. Grab the latest code: (Please correct me if it's not the right place to get the latest code)
git clone https://code.google.com/p/netopeer
2. Change the corresponding line in SSH daemon configuration file (/etc/ssh/sshd_config) from "netopeer-server-sl" to "netopeer-server":
Subsystem netconf /home/jzhao/netopeer/server/netopeer-server
3. Restart SSH service:
$ sudo service SSH restart
Is this the right sequence to use the multi-level server? Is there anything I miss? I see there is another binary "netopeer-agent" in the "netopeer/server" folder. Do I need to manually invoke this binary before the client connection?
Hi Radek,
I can successfully connect the multi-level server after removing "Port 830" and netopeer-server from sshd_config file with a non-root session.
The only problem is that if I connect to the server with a root session, it fails with the following message. Not sure if others have seen this before?
netconf> connect 127.0.0.1 --login root
libnetconf WARNING: Unable to check against the knownhost file (/home/jzhao/.ssh/netconf_known_hosts).
The authenticity of the host '127.0.0.1' cannot be established.
RSA key fingerprint is 38:d7:cf:56:f5:ef:ad:b1:b8:4e:8c:05:62:26:33:56.
Are you sure you want to continue connecting (yes/no)? yes
libnetconf WARNING: Writing /home/jzhao/.ssh/netconf_known_hosts failed!
ro...@127.0.0.1 password:
libnetconf ERROR: Authentication failed (Authentication failed (username/password))
libnetconf ERROR: Unable to authenticate to the remote server (supported authentication method(s) are disabled).
connect: connecting to the 127.0.0.1 failed.
netconf>
By the way, when I ./configure the server, it says that "ubuntu is not fully supported". What does that mean? What impact will it be (or is there any feature that's not available on Ubuntu) ? Thanks.
root@ubuntu:/home/jzhao/netopeer/server# ./configure
checking for pkg-config... /usr/bin/pkg-config
checking for roff2html... no
checking for sshd... /usr/sbin/sshd
checking for distro... ubuntu
configure: WARNING: Unsupported Linux distro "ubuntu", only RHEL and SUSE are fully supported.
--
You received this message because you are subscribed to the Google Groups "Netopeer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netopeer+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/netopeer.
For more options, visit https://groups.google.com/d/optout.
-- Radek Krejci mobile : +420 732 212 714 office : +420 234 680 256 e-mail : rkr...@cesnet.cz LinkedIn: http://www.linkedin.com/in/radekkrejci CESNET Association of Legal Entities 160 00 Praha 6, Zikova 4 Czech Republic