edward6018 / libnetconf

Automatically exported from code.google.com/p/libnetconf
Other
0 stars 0 forks source link

libnetconf ERROR: Unable to connect to localhost:830 #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I have followed all the instructions for installing the libnetconf and netopeer 
server-sl project.
I have configured the ssh of the system for listening on port 830 and restarted 
the sshd. But whenever I am trying to connect to the netopeer single server 
through get.c example of the libnectconf by using the command:
    ./get -l root -p 830
I am getting the following error:
    libnetconf ERROR: Starting the netconf SSH subsystem failed (Unable to complete request for channel-process-startup)
Connecting to the NETCONF server failed.

I have checked the /var/log/secure then there I am seeing the following:

Jan  2 21:22:40 in-sjain-dt sshd[15745]: Accepted password for root from ::1 
port 40301 ssh2
Jan  2 21:22:40 in-sjain-dt sshd[15745]: pam_unix(sshd:session): session opened 
for user root by (uid=0)
Jan  2 21:22:40 in-sjain-dt sshd[15745]: subsystem request for netconf
Jan  2 21:22:40 in-sjain-dt sshd[15745]: error: subsystem: cannot stat 
/usr/local/bin/netopeer-server-sl: Permission denied
Jan  2 21:22:40 in-sjain-dt sshd[15745]: subsystem request for netconf failed, 
subsystem not found
Jan  2 21:22:40 in-sjain-dt sshd[15745]: Received disconnect from ::1: 11: other
Jan  2 21:22:40 in-sjain-dt sshd[15745]: pam_unix(sshd:session): session closed 
for user root

By looking at the above log trace it is giving me the impression that the error 
is related to some permissions. Since I am very new to this libnetconf 
therefore it would be highly appreciated if anyone can help me on this?

Regards,
Sachin Jain

Original issue reported on code.google.com by hellosac...@gmail.com on 2 Jan 2015 at 11:49

GoogleCodeExporter commented 9 years ago
Hi,
sshd in the log says, that the path to the netconf subsystem 
(netopeer-server-sl) in the /etc/ssh/sshd_config is wrong or (more probably) it 
is missing ("subsystem not found"). You say that you configured ssh for 
listening on port 830, but did you also add the netconf subsystem configuration 
as it is described in https://code.google.com/p/netopeer/wiki/SSHDaemonSettings 
(section "Subsystem"?

Regards,
Radek

Original comment by rkre...@cesnet.cz on 6 Jan 2015 at 8:30