# I'd like to use ssh instead of using netconf-console with xml

**URL:** https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310
**Category:** NETCONF
**Created:** [June 8, 2017, 4:41am UTC](https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310 "2017-06-08T04:41:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![joggu](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@joggu](https://dmap-community.ductus.global/u/joggu)
#### Post date: [June 8, 2017, 4:41am UTC](https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310/1 "2017-06-08T04:41:56Z")

</div>

Until now, I have run RPC using netconf-console as shown below.  
“# netconf-console -s all ./rpcaco.xml -u user -p passwd”  
I would like to do the same thing using ssh.  
When I entered “# ssh -s user@localhost netconf”, capibilities were responded.  
But, I don’t know how to do for run RPC.  
Please, let me know about it.

---

<div class="post-metadata">

### Author: ![jlawitzke](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/jlawitzke/32/54_2.png) [@jlawitzke](https://dmap-community.ductus.global/u/jlawitzke)
#### Post date: [June 8, 2017, 1:15pm UTC](https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310/2 "2017-06-08T13:15:45Z")

</div>

You would have to manually enter the XML RPCs as defined the NETCONF RFC. This is something which people don’t normally do.

---

<div class="post-metadata">

### Author: ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)
#### Post date: [June 8, 2017, 4:50pm UTC](https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310/3 "2017-06-08T16:50:37Z")

</div>

You may also want to explore use of the interactive mode of netconf-console with the -i or --interactive option which allows you to manually enter one or more RPC requests.

An example usage of netconf-console’s interactive mode is shown in this posting at [Candidate datastore](https://discuss.tail-f.com/t/candidate-datastore/145/2?u=waitai).

---

<div class="post-metadata">

### Author: ![joggu](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@joggu](https://dmap-community.ductus.global/u/joggu)
#### Post date: [June 12, 2017, 1:53am UTC](https://dmap-community.ductus.global/t/id-like-to-use-ssh-instead-of-using-netconf-console-with-xml/1310/4 "2017-06-12T01:53:36Z")

</div>

I have understood the usage of the netconf-console with interactive option that waitai taught to me.  
thanks your kindness.

I have another question when using ssh.  
when I ran “ssh -s user@localhost netconf”, I could see the capabilities from confd.  
after that, and I tried rpc statement but shell was broken.

following statement is error message.

.!-- Error: bad element: /rpc (closing session) –

Is it impossible to run rpc statement in ssh directly ?
