# Lib net-ssh problem!

**URL:** <https://www.ruby-forum.com/t/lib-net-ssh-problem/105486>\
**Category:** Rails\
**Created:** [May 30, 2007, 11:42am UTC](https://www.ruby-forum.com/t/lib-net-ssh-problem/105486 "2007-05-30T11:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alflol](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@alflol](https://www.ruby-forum.com/u/alflol)\
**Post date:** [May 30, 2007, 11:42am UTC](https://www.ruby-forum.com/t/lib-net-ssh-problem/105486/1 "2007-05-30T11:42:44Z")

</div>

Hi ,

iÂ´m having a small big problem 🙂

IÂ´m using net-ssh lib to authenticate, and execute commands remotely  
in a rails application.

The problem is that iÂ´m getting the exception  
“could not settle on kex algorithm” when try to open a session, this  
happens  
when i execute the code in the rails context.

When i execute the code by command line, it runs well.

My environment has:  
net-ssh (1.1.0)  
rails (1.2.1)  
ruby 1.8.4

I believe that i have all the lib/bindings installed for ruby.  
Can anyone help!?

Thanks,  
AndrÃ©
