Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3786950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:45:49+00:00 2026-05-19T11:45:49+00:00

What im trying to do: service-hosted rails app ( heroku or something ) user

  • 0

What im trying to do:

  • service-hosted rails app ( heroku or something )

  • user logs into application and wants to ” DO THINGS “

  • ” DO THINGS ” entails running commands to the local machine i have here in my apartment

I’ve SSHed into a server before … but i think this would be best setup if the server initiates the connection

  1. I’m FAIRLY running a permanent SSH isnt the best idea
  2. I’m not 100% sure on the process .. i just need information transfer between my hosted application .. and my local machine.

ruby socket set of commands which could possibly work?

any particular gem that would handle this?

Thanks ahead of time!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:45:50+00:00Added an answer on May 19, 2026 at 11:45 am

    so far it looks like NetSSH is the answer im looking for

    at command prompt:

    $ gem install net-ssh
    

    Next we create a new controller file:

    app/controllers/ssh_connections_controller.rb
    

    and inside ssh_connections_controller.rb file place:

      def conn
    
      Net::SSH.start( '127.0.0.1','wonton' ) do |session|
        session.open_channel do |channel|
          channel.on_close do |ch|
            puts "channel closed successfully."
            render :text => 'hits'
          end
          puts "closing channel..."
          channel.close
        end
    
        session.loop
      end
    
      end
    

    … and substitute your local settings…
    ‘wonton’ would be the name of whatever user you want to SSH in as

    more to be updated!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service, hosted in IIS returning the following error (when trying
When trying to make a web service (hosted on a different server) call from
I have to consume a .NET hosted web service from a Java application. Interoperability
I have WCF service hosted by Windows service. This is my app.config file (server-side)
I'm trying to call a WCF service (hosted in a Windows Service, not IIS)
I'm trying to set up a WCF service hosted in IIS that exposes an
I have a service that is hosted in WAS. I am trying to inject
I'm trying to create a client for a WCF service that I have hosted
I'm trying to consume a WF Service hosted in IIS express (xamlx) from a
Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.