Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Environment variable passing through OpenSSH

I am using OpenSSH for Windows in order to be able to connect a Linux machine to a Windows machine.
To do that I have installed a SSH server for Windows v5.6p1-2.
I also have declared the allowed users.

From my Linux machine, I connect to the Windows machine with "ssh user@machine" command.

My problem is that once connected, I get only some Windows environment variables but not all system and user defined variables.
Is it possible to get all the Windows environment variables ?

Thanks,

like image 906
oaimac Avatar asked Aug 29 '12 15:08

oaimac


People also ask

How do you ssh into the environment?

Newer versions of windows 10 have a build in ssh client accessable via the build in windows terminal. This can be found by pressing the windows key and typing command prompt and hitting enter. The ssh syntax is ssh username@destation and then hitting enter and supplying your password.

Can I connect to Windows using ssh?

There are two terminals on Windows 10 and 11, the Command Prompt (also called CMD) and PowerShell. To connect to a server using SSH on Windows 10 within one of these tools, the OpenSSH client needs to be installed.

What is ssh environment variable?

Tetiana Markova | September 13, 2016. Environment variables represent a kind of placeholders, where you can store the frequently used parameters' values or strings in order not to specify them manually in the code each time they are needed.


1 Answers

"This is to limit security holes."

Check this out it has a few solutions.

http://cygwin.com/ml/cygwin/2006-11/msg00394.html

like image 154
Nate-Wilkins Avatar answered Nov 15 '22 11:11

Nate-Wilkins