Topic "Using Windows PowerShell, instead of PuttY?"

Author Message
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Hi,

I'm trying to see if I can use Powershell instead of PuTTY, when doing SSH sessions. So In Preferences > Integration > Applications, I entered:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

I then restarted WinSCP, and tried to open a SSH session. Powershell opens, and then I see a brief flash of red text, and then it closes. Is there something I'm missing? The text is so brief, I don't get a chance to read it Sad

Thanks!

Andy
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
PowerShell is not an SSH client.

Did you hope to use PowerShell console capabilities for an SSH terminal? That's not possible.

Or do you connect to Windows server? Maybe you actually want to open PowerShell on the remote server.
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Ah ok - I just assumed any terminal would work (I have Cygwin installed, and I can access ssh using `ssh xxxx` via the command line, so I just assumed it would work). Shame, as Powershell has a much nicer interface to Putty (and I like the way you can grab specific parts of the terminal window, not just the whole lines)

Cheers

Andy
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
What prevents your from selecting a part of a line in PuTTY?
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
It's more like this that I'm after. i.e selecting part of a window. Also, the command/syntax formatting is nice Wink

Cheers

Andy
Untitled.png (45.21 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Use Alt+drag.

The PowerShell does formatting because it understands the commands, because they PowerShell commands. It wouldn't be able to magically format remote/shell commands, because it won't understand them.
_________________
Martin Prikryl
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Ahhh I didn't realise you could do Alt+drag in PuTTy. The main reason I want this, for example, is when I have the output of a list of files. I just want to be able to grab one of the columns. Currently I have to copy the lot, then paste into an editor, then trim off the extra stuff I don't want. The syntax highlighting I can deal without - would have just been nice Smile

Cheers

Andy
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License