Thread: SSH'ing from a windows machine to a linux machine

  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    9

    SSH'ing from a windows machine to a linux machine

    So I have one linux machine and one windows 8.1 machine connected on a LAN.


    So i want to use GCC from windows. Problem is, i have zero experience with vim and have a little background in linux commands.


    So Instead of using mingw or cygwin, due to the lack of tools like valgrind, DDD and makefiles, I will be SSH'ing from a windows terminal to access my linux machine, and i will be writing code in the notepad++ editor and compile it to my linux machine . Is this possible?

    I think this tutorial might help me.
    How to Use SSH to Access a Linux Machine from Windows - CodeProject

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,907
    That tutorial seems fine, have you tried it? Is there a problem with it?

    IIRC, Notepad++ is a Windows editor, implying you will be writing code on your Windows machine. This won't magically work over SSH with your Linux machine. You have at least a few options (in rough order from worst to best):

    1. Save the file to your Windows machine, then use a program to SCP it to the Linux box. SSH to the Linux box, compile, run, debug, etc.
    2. Create a Windows share on your Linux box, and mount that share on your Windows machine. Save your source code file in the mounted Windows location, and it will also exist on your Linux box. SSH to the box, compile, run, etc.
    3. Learn how to use the Linux command line and a basic editor. Vim (or at least regular old Vi) can be found on virtually every Linux and *nix machine; it's quite powerful, but a bit harder to get the hang of. This is my preference. Emacs is widely available, powerful, and also a bit tricky to get the hang of. Nowadays, editors like Pico and Nano are fairly available (especially if you have permissions to install your own software), and a bit more friendly to get started with.

    #3 is really the best option. If you have to (or want to) use Linux for development (it's my preferred dev platform), then you simply must become familiar with Linux and it's tools. Better to start now. Yes, the learning curve is a bit steep, but it's worth it.

  3. #3
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,819
    I am not a Linux user besides very very little dabbling in Ubuntu. But I think code blocks works on Linux and should have a fairly user friendly editor.

    Code::Blocks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to let my program responds to CTRL+C (linux machine)
    By patiobarbecue in forum C++ Programming
    Replies: 25
    Last Post: 04-21-2009, 09:35 AM
  2. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  3. Man, I'm on a windows machine
    By student1 in forum C Programming
    Replies: 5
    Last Post: 09-07-2002, 03:29 AM
  4. IDEA: A Slot Machine (aka a fruit machine)
    By ygfperson in forum Contests Board
    Replies: 0
    Last Post: 08-12-2002, 11:13 PM
  5. my linux machine short lived
    By hermit in forum Linux Programming
    Replies: 3
    Last Post: 06-06-2002, 05:17 AM