# Net/ssh question

**URL:** <https://rubytalk.org/t/net-ssh-question/21176>\
**Category:** ruby-talk\
**Created:** [28 September 2005 15:26 UTC](https://rubytalk.org/t/net-ssh-question/21176 "2005-09-28T15:26:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Newman](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@Chris\_Newman](https://rubytalk.org/u/Chris_Newman)\
**Post date:** [28 September 2005 15:26 UTC](https://rubytalk.org/t/net-ssh-question/21176/1 "2005-09-28T15:26:58Z")

</div>

pageant is Putty's version of an ssh keyring. It runs as a process and  
references whatever private keys it has loaded when ssh needs to  
authenticate a connection. Sounds like Net::SSH is trying to contact pageant  
but pageant isn't running.

You need to make sure it is loaded and whatever private key is needed is  
loaded into pageant.

Hope this helps.

> **···**
>
> -----Original Message-----  
> From: itsme213 [[mailto:itsme213@hotmail.com](mailto:itsme213@hotmail.com)]  
> Sent: Wednesday, September 28, 2005 10:22 AM  
> To: [ruby-talk@ruby-lang.org](mailto:ruby-talk@ruby-lang.org)  
> Subject: net/ssh question
> 
> I am trying to get an ssh session started with  
> &nbsp;&nbsp;- 1.0.2 of net/ssh  
> &nbsp;&nbsp;- ruby 1.8.2 (2004-12-25) [i386-mswin32]  
> and get an exception:
> 
> irb(main):004:0\> s = Net::SSH.start( 'my\_host.com', 'user', 'pw )  
> Net::SSH::Exception: pageant process not running  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from  
> c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/userauth/pageant.rb  
> :112:in `in  
> itialize'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/dl/import.rb:174:in `new'  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/dl/import.rb:174:in `new'
> 
> Any idea what I am doing wrong? Am I missing some library? I installed  
> net-ssh as a gem with no errors.
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![Its\_Me](https://avatars.discourse-cdn.com/v4/letter/i/958977/32.png) [@Its\_Me](https://rubytalk.org/u/Its_Me)\
**Post date:** [28 September 2005 15:41 UTC](https://rubytalk.org/t/net-ssh-question/21176/2 "2005-09-28T15:41:55Z")

</div>

Thanks Chris. That helped a bunch.

Since I did not want to use private/public keys, I just had to explicitly  
specify :auth\_methods to #start.

Cheers!

> pageant is Putty's version of an ssh keyring. It runs as a process and  
> references whatever private keys it has loaded when ssh needs to  
> authenticate a connection. Sounds like Net::SSH is trying to contact

pageant

> but pageant isn't running.
> 
> You need to make sure it is loaded and whatever private key is needed is  
> loaded into pageant.
> 
> Hope this helps.

> From: itsme213 [mailto:itsme213@hotmail.com]  
> Sent: Wednesday, September 28, 2005 10:22 AM  
> To: ruby-talk@ruby-lang.org  
> Subject: net/ssh question
> 
> I am trying to get an ssh session started with  
> &nbsp;&nbsp;- 1.0.2 of net/ssh  
> &nbsp;&nbsp;- ruby 1.8.2 (2004-12-25) [i386-mswin32]  
> and get an exception:
> 
> irb(main):004:0\> s = Net::SSH.start( 'my\_host.com', 'user', 'pw )  
> Net::SSH::Exception: pageant process not running  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from

c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.2/lib/net/ssh/userauth/pageant.rb

> **···**
>
> "Chris Newman" \<Chris.Newman@dalsemi.com\> wrote
> 
> > -----Original Message-----  
> > :112:in `in  
> > itialize'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/dl/import.rb:174:in `new'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/dl/import.rb:174:in `new'
> > 
> > Any idea what I am doing wrong? Am I missing some library? I installed  
> > net-ssh as a gem with no errors.
> > 
> > Thanks!
