lukeglazebrook
Enthusiast
Enthusiast

Installed OpenSSH on VC can view scipts but how can I invoke them exactly? Typing them does nothing and hitting return does nothing?

So I have OpenSSH installed on my VC and can connect fine as a local user on the server, I have several scripts visable in the home directory.  That same local user has been granted full Administrator access to vSphere.

But... How would I kickoff one of the same scripts that work perfectly via PowerShell on the server directly ? Any idea's even a guese ...

Capture.JPG

0 Kudos
5 Replies
ccalvetTCC
Enthusiast
Enthusiast

It seems that OpenSSH integration is not available yet.

But it will may be present one day.

http://blogs.msdn.com/b/powershell/archive/2015/06/03/looking-forward-microsoft-support-for-secure-s...

Blog: http://thecrazyconsultant.com/ | Twitter: @ccalvetTCC
0 Kudos
lukeglazebrook
Enthusiast
Enthusiast

Are you able to suggest any potential workaround mate?  Someone suggested I might be abel to get it working my changing enviromental varibles but I am not 100% exactly what he meant by that

0 Kudos
ccalvetTCC
Enthusiast
Enthusiast

From the blog article i guess that there is no workaround yet.

OpenSSH has been designed to provide access to some Linux client utilities in Windows (via Cygwin)

PowerShell is not a Linux client tool.

Blog: http://thecrazyconsultant.com/ | Twitter: @ccalvetTCC
0 Kudos
ccalvetTCC
Enthusiast
Enthusiast

Maybe there are others tools available however than openssh, and replace default command shell.

http://hindenes.com/trondsworking/2012/05/17/run-powershell-through-ssh/

Blog: http://thecrazyconsultant.com/ | Twitter: @ccalvetTCC
0 Kudos
LucD
Leadership
Leadership

You could try the OpenSSH version that already exists, see NoMachine

You probably have to use the "inputformat none" parameter with powershell.

powershell -inputformat none CloneVMsMK28.ps1



Btw, in a recent post, the MSFT team has published their roadmap.for the port of OpenSSH


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos