Mihai Damian
Mihai Damian

Reputation: 11432

Open Python shell through SSH

I'm using this tool to set up a ssh server on Windows. I'm trying to open the standard Python shell through a remote ssh connection but I simply can't get it to work. If I type 'python' in my ssh command line nothing happens, it just seems to wait for more input. My server machine however, shows a new python process running after I do this.

Running scripts works fine, though.

Do I need to use another Python shell, some other ssh server, some different configs?

Thanks

Upvotes: 1

Views: 1811

Answers (2)

Oddthinking
Oddthinking

Reputation: 25292

My guess is that Python is not recognising the stdin on the SSH shell as a terminal. I don't know why that would be.

However, try running "python -i" to overcome it.

Upvotes: 2

Andrew Aylett
Andrew Aylett

Reputation: 40710

The problem is probably that you're running the Windows Python executable, which expects a Windows console environment to run in, over a channel which doesn't support the features of Windows console. You might find Andy Koppe's conin to be useful.

Upvotes: 0

Related Questions