In the router which i am using, we dont have /user/local/bin. so i put in a already existing folder and mentioned that path in /etc/ssh/sshd_config. say /x/y/bin
But the netconf doesn’t seem to get connected.
I could connect netconf with 2022 and it works.
But if i disabled ssh in confd.conf, restart confd and sshd and trying to connect with port 22. But that’s not working. I have also enabled USE_IPC = yes
I would like to have netconf connected with ssh port mentioned in sshd_config.
You seem to follow the ConfD UG chapter “NETCONF Transport Protocols” section “Using OpenSSH”. Have you compiled the $CONFD_DIR/src/confd/netconf/netconf-subsys.c program for the system you are running that program on? I.e. using the $CONFD_DIR/src/confd/netconf/Makefile and make clean all?
Hi Ash,
Seems like an OpenSSH issue then. The SSH_CONNECTION variable is set by OpenSSH and used by, for example, the netconf_subsys program to determine client IP address etc.
From the ssh(1) man page:
SSH_CONNECTION
Identifies the client and server ends of the connection. The variable contains four space-separated values: client IP address, client port number, server IP address, and server port number.
Note that you are not supposed to run the netconf-subsys program from your command line. The OpenSSH daemon will run the netconf-subsys program after you configure it to do so. From the ConfD UG under “Using OpenSSH” that I referred to earlier:
. To use OpenSSH, compile the netconf-subsys program, and put the executable in e.g. /usr/local/bin. Then add the following line to the ssh daemon’s config file, sshd_config:
Subsystem netconf /usr/local/bin/netconf-subsys