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:
using users password authentication:
ssh jenkins@192.168.xxx.xxx "cmd /c echo %userdomain%, %username%"
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
Post a Comment