# SSH protocol to connect and command others equipemnts on ethernet network

**URL:** <https://www.wago.community/t/ssh-protocol-to-connect-and-command-others-equipemnts-on-ethernet-network/1295>\
**Category:** CODESYS\
**Created:** [November 4, 2024, 8:52am UTC](https://www.wago.community/t/ssh-protocol-to-connect-and-command-others-equipemnts-on-ethernet-network/1295 "2024-11-04T08:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)\
**Post date:** [November 4, 2024, 10:19am UTC](https://www.wago.community/t/ssh-protocol-to-connect-and-command-others-equipemnts-on-ethernet-network/1295/2 "2024-11-04T10:19:56Z")

</div>

there is one problem:  
we can connect to other device using app  
`ssh -o StrictHostKeyChecking=no root@ipaddress 'command'`  
but you have to write the password for security reasons. No password, no problem (except security 😛 )  
To send a password you need **sshpass** app, so you can send password:  
`sshpass -p 'password' ssh user@remote_ip 'command'`  
To do that, you can create some docker container and call it using _SysProcess_ library or _WagoAppConfigTool_ ([SSH command from CoDeSys - #4 by WagoDamRud](https://www.wago.community/t/ssh-command-from-codesys/1048/4))

---

_[View the full topic](https://www.wago.community/t/ssh-protocol-to-connect-and-command-others-equipemnts-on-ethernet-network/1295)._
