I am running the following command from ubuntu 14.04 server to access windows server 2016
winexe -d 10 -U 'Administrator%password' //producttesting 'cmd /c dir'
Output:
adding hidden service IPC$
adding hidden service ADMIN$
failed to get principal from default ccache: No such file or directory: open(/tmp/krb5cc_0): No such file or directory
winexe version 1.00
This program may be freely redistributed under the terms of the GNU GPLv3
GENSEC backend 'spnego' registered
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'schannel' registered
Using binding ncacn_np:producttesting[,print]
Mapped to DCERPC endpoint \pipe\svcctl
added interface ip=172.31.79.95 nmask=255.255.240.0
added interface ip=172.31.79.95 nmask=255.255.240.0
ERROR: Cannot connect to svcctl pipe. NT_STATUS_IO_TIMEOUT.
added interface ip=172.31.79.95 nmask=255.255.240.0
added interface ip=172.31.79.95 nmask=255.255.240.0
ERROR: Failed to open connection - NT_STATUS_IO_TIMEOUT
/etc/hosts file entry:
IP ec2-IP-ap-southeast-2.compute.amazonaws.com producttesting
Firewall on windows host is turned off
share C:/ is made sharable
RDP is enabled.
windows machine is reachable from ubuntu.
Please help !