Windows Vista Forums

Powershell as a windows ssh shell
  1. #1


    Jason Guest

    Powershell as a windows ssh shell

    Hello,

    I have been trying to use powershell on windows. Local use seem to be a
    rather nice replacement to existing shells. However once I go remote I have a
    lot of issue. The biggest is running programs on the remote systems. If that
    program requires intertaction the shell locks up, and i have to press cntrl-C
    to get out of it. Is it possible to run programs such as SVN or any other
    program that might require input form the user on the remote system?



    Thanks
    Jason

      My System SpecsSystem Spec

  2. #2


    Bob Landau Guest

    RE: Powershell as a windows ssh shell

    From the behavior you're mentioning below I'm guessing this is a GUI app.
    These will not work using remoting although spawning these won't cause your
    console to lock up.

    In regards to input, you've neglicated to tell us how you're accessing the
    remote machine. There are several methods Enter-PSSession is how you would
    work interactively on the remote machine. I've not used SVN but if this is a
    console based app it should just work like every other console based app.

    bob

    "Jason" wrote:

    > Hello,
    >
    > I have been trying to use powershell on windows. Local use seem to be a
    > rather nice replacement to existing shells. However once I go remote I have a
    > lot of issue. The biggest is running programs on the remote systems. If that
    > program requires intertaction the shell locks up, and i have to press cntrl-C
    > to get out of it. Is it possible to run programs such as SVN or any other
    > program that might require input form the user on the remote system?
    >
    > Thanks
    > Jason

      My System SpecsSystem Spec

  3. #3


    Jason Guest

    RE: Powershell as a windows ssh shell

    Hi,

    What i did was a Enter-PSSession to start the remote session. I have found
    that there are other ways to get this simular behavior.

    For example if you try to run cmd.com or python.exe ( given that you have
    python installed) In both cases I don't get a command prompt or a python
    prompt. Both of these are console, non-gui programs

    Svn as I said locks up the prompt waiting for input that I seem unable to
    give it

    I did a different test. I made a simple C++ program
    #include "stdafx.h"
    #include <string>
    #include <iostream>

    using namespace std;

    int _tmain(int argc, _TCHAR* argv[])
    {
    std::string s;
    cout<<"enter value:";
    cin>>s;
    cout<<s<<endl;
    return 0;
    }

    in this case the program prints the "enter value:" part then returns to the
    prompt. I don't know why svn locks up, but in either cases it seems that one
    can't use a cli program that requires interactive input with powershell

    Jason

    "Bob Landau" wrote:

    > From the behavior you're mentioning below I'm guessing this is a GUI app.
    > These will not work using remoting although spawning these won't cause your
    > console to lock up.
    >
    > In regards to input, you've neglicated to tell us how you're accessing the
    > remote machine. There are several methods Enter-PSSession is how you would
    > work interactively on the remote machine. I've not used SVN but if this is a
    > console based app it should just work like every other console based app.
    >
    > bob
    >
    > "Jason" wrote:
    >

    > > Hello,
    > >
    > > I have been trying to use powershell on windows. Local use seem to be a
    > > rather nice replacement to existing shells. However once I go remote I have a
    > > lot of issue. The biggest is running programs on the remote systems. If that
    > > program requires intertaction the shell locks up, and i have to press cntrl-C
    > > to get out of it. Is it possible to run programs such as SVN or any other
    > > program that might require input form the user on the remote system?
    > >
    > > Thanks
    > > Jason

      My System SpecsSystem Spec

Powershell as a windows ssh shell problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
ExMerge and PowerShell with Exchange Management Shell cmdlets systinte5 PowerShell 3 29 Jul 2009
Using Exchange Management Shell through Powershell on other PC? Eero J PowerShell 4 20 Jan 2009
Powershell starts but never exits when invoked from Wscript shell kanjasaha PowerShell 7 12 May 2008
Executing Power Shell Scripts from Windows Shell Mugunth PowerShell 3 02 May 2007
powershell as telnet shell replacement Joris van Lier PowerShell 2 03 Mar 2007