# Net::SSH - shell service gone?

**URL:** <https://www.ruby-forum.com/t/net-ssh-shell-service-gone/171501>\
**Category:** Ruby\
**Created:** [July 3, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/net-ssh-shell-service-gone/171501 "2009-07-03T15:56:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzabiello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9fc348/32.png) [@jzabiello](https://www.ruby-forum.com/u/jzabiello)\
**Post date:** [July 3, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/net-ssh-shell-service-gone/171501/1 "2009-07-03T15:56:06Z")

</div>

Where can I find shell service in Net:SSH?

It is described at  
[http://net-ssh.rubyforge.org/ssh/v1/chapter-5.html#s3](http://net-ssh.rubyforge.org/ssh/v1/chapter-5.html#s3).

The problem is there is no methods “shell” anymore ☹

p Net::SSH.start(host, user).shell # =\> NoMethodError: undefined method  
â€˜shellâ€™ for #Net::SSH::Connection::Session:0x789538

---

<div class="post-metadata">

**Author:** ![jzabiello](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9fc348/32.png) [@jzabiello](https://www.ruby-forum.com/u/jzabiello)\
**Post date:** [July 3, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/net-ssh-shell-service-gone/171501/2 "2009-07-03T16:10:42Z")

</div>

Dnia 03-07-2009 o 14:52:09 Jaroslaw Z.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) napisaÅ‚(a):

> Where can I find shell service in Net:SSH?
> 
> It is described at [http://net-ssh.rubyforge.org/ssh/v1/chapter-5.html#s3](http://net-ssh.rubyforge.org/ssh/v1/chapter-5.html#s3).
> 
> The problem is there is no methods “shell” anymore ☹
> 
> p Net::SSH.start(host, user).shell # =\> NoMethodError: undefined method  
> â€˜shellâ€™ for #Net::SSH::Connection::Session:0x789538

I found that this problem is in Net::SHH 2.x. Why shell service was  
dropped? Is there any other way to use it in Net::SSH 2.x? I need to  
keep  
context of shell commands. E.g. cd /blah and then ls -l should be in  
/blah. I do not want to have one stupid and long command only. It is a  
big  
limitation.
