windows - Environment variables in cygwin ssh session -


i installed cygwin , sshd on winxp box. sshd runs service. (i used 'ssh-host-config' configure , 'cygrunsrv -s sshd' start it)

now login , execute command linux box using usual ssh client in 2 different ways:

  1. using users password authentication:

    ssh jenkins@192.168.xxx.xxx "cmd /c echo %userdomain%, %username%"

  2. using public key authentication:

    ssh -i /path/to/private_key/id_rsa jenkins@192.168.xxx.xxx "cmd /c echo %userdomain%, %username%"

the output is:

1.) winxp_hostname, jenkins

2.) nt authority, system

could explain how happens: why user belongs different domains. ... , can tune/influence ?


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -