# Net/ssh question

**URL:** <https://www.ruby-forum.com/t/net-ssh-question/70556>\
**Category:** Ruby\
**Created:** [September 30, 2006, 2:28am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556 "2006-09-30T02:28:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [September 30, 2006, 2:28am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/1 "2006-09-30T02:28:52Z")

</div>

Can I use net/ssh to connect to a remote server, start a X  
application, and have the application’s display show up on my  
computer?

Joe

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [September 30, 2006, 2:32am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/2 "2006-09-30T02:32:52Z")

</div>

On 30/09/06 Joe Van D. said:

> Can I use net/ssh to connect to a remote server, start a X  
> application, and have the application’s display show up on my  
> computer?

Can it use X portforwarding? If so, then yes, if you’re running a local  
X  
server.

Mike

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [September 30, 2006, 2:42am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/3 "2006-09-30T02:42:53Z")

</div>

On 9/29/06, Michael P. Soulier [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 30/09/06 Joe Van D. said:
> 
> > Can I use net/ssh to connect to a remote server, start a X  
> > application, and have the application’s display show up on my  
> > computer?
> 
> Can it use X portforwarding? If so, then yes, if you’re running a local X  
> server.

I don’t know if it can or not. 🙂 Why I’m asking.

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [September 30, 2006, 4:57am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/4 "2006-09-30T04:57:00Z")

</div>

On Sat, 30 Sep 2006, Joe Van D. wrote:

> Can I use net/ssh to connect to a remote server, start a X  
> application, and have the application’s display show up on my  
> computer?
> 
> Joe

-a

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [October 2, 2006, 12:57am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/5 "2006-10-02T00:57:47Z")

</div>

On 9/29/06, Paul L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > server.
> > 
> > I don’t know if it can or not. 🙂 Why I’m asking.
> 
> The answer depends on whether the remote and local machines are properly  
> configured

Yes

> both running the same version of X windows

Yes

> and whether the SSH connection between the local and remote machines is made with the appropriate options.

My question is whether net/ssh supports these appropriate options, and  
whether an application’s display can be sent over an opened ssh  
channel.

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [September 30, 2006, 3:26am UTC](https://www.ruby-forum.com/t/net-ssh-question/70556/6 "2006-09-30T03:26:54Z")

</div>

Joe Van D. wrote:

> I don’t know if it can or not. 🙂 Why I’m asking.  
> The answer depends on whether the remote and local machines are properly  
> configured, both running the same version of X windows, and whether the  
> SSH  
> connection between the local and remote machines is made with the  
> appropriate options.

But this sort of SSH connection requires so much cooperation between the  
local and remote X windows environments that it is generally better  
carried  
out directly, not by way of Ruby.
