Thread: server control (via SSH)

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    630

    server control (via SSH)

    I'm working on simple server application for learning purpuses and I've been trying to implement something to be able to control it remotely..

    I've been thinking about telnet control which would be very simple but I dont want to go for it because its unsecure.

    The next option was SSH (OpenSSH) which seems like a good way to do it except I'm unsure how to make it work with my application (I use boost asio framework). I would like to keep my application normally compileable on most of platforms (dependless on pre-compiled libraries for individual platform)..

    Is there any good alternative? Or is it possible to make it work as I imagine with OpenSSH?

    Many thanks in advance

  2. #2
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    You could go ahead with the "telnet" option, or just some really basic protocol. You could then use an SSH tunnel to connect to it (and set your server to only listen for connection on the loopback). Or, just use the SSH session itself and run the client on the same machine as the server.

    I do this when using VNC, for example. VNC, to my knowledge, is not "secure". I think the initial password is obsured, but I don't think (or know) if keystrokes are. Since I sometimes tell my Linux box to update from afar, and that requires my root password, and since it IS a VNC session, and I don't care to have someone looking over my shoulder, VNC goes through an SSH tunnel. (TightVNC + Putty)
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    630
    Quote Originally Posted by Cactus_Hugger View Post
    You could go ahead with the "telnet" option, or just some really basic protocol. You could then use an SSH tunnel to connect to it (and set your server to only listen for connection on the loopback). Or, just use the SSH session itself and run the client on the same machine as the server.

    I do this when using VNC, for example. VNC, to my knowledge, is not "secure". I think the initial password is obsured, but I don't think (or know) if keystrokes are. Since I sometimes tell my Linux box to update from afar, and that requires my root password, and since it IS a VNC session, and I don't care to have someone looking over my shoulder, VNC goes through an SSH tunnel. (TightVNC + Putty)
    You're talking for linux, right? As far as I know its possible to enable SSH on linux and open the program 'session' from it to be able to pass it commands from there, but would this solution be okay?

    What about on the windows?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-27-2009, 05:27 PM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 11:21 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM