remote-access

Using advapi32.dll:LogonUserA() to impersonate a remote machine's local user

限于喜欢 提交于 2019-11-30 17:41:48
问题 I need to be able to run RegLoadKey() on a remote machine, and it may be that my machine and the remote machine are not in the same domain. If they are, the below code works OK and I can impersonate a user that has admin privileges on the machine. Otherwise, if we're talking about local users, according to this discussion I found... http://www.eggheadcafe.com/conversation.aspx?messageid=34224301&threadid=34224226 ...There has to be a local user on my machine with the same username and

I need to read a remote file with logs from a tomcat

家住魔仙堡 提交于 2019-11-30 17:18:17
问题 I need to read a remote file with logs from a tomcat What is the most convenient way to do it if I have ssh access to the log folder ? 回答1: OtrosLogViewer can read logs from remote server. It supports SFTP, FTP and Samba. It also provides remote file systems browser. Disclaimer : I am the author of OtrosLogViewer 回答2: Use Editplus to connect to remote server via FTP/SSH. Refresh the logs as and when you need to. 回答3: You can use log4j's Chainsaw V2 and a VFSLogFilePatternReceiver to parse and

How to get permissions for using System.Diagnostics.Process.GetProcess(string)?

元气小坏坏 提交于 2019-11-30 15:25:18
I'm using Microsoft Visual Studio to make a simple remote task manager for experience purposes. I want to use Process.GetProcesses(string); but there is an access denied exception that won't allow me to get the remote computer process. In fact it is normal because we should authenticate using a user name and password, but how ? You may try to use WMI for this purpose /// using System.Management; // don't forget! in VS you may have to add a new reference to this DLL ConnectionOptions op = new ConnectionOptions(); op.Username = "REMOTE_USER"; op.Password = "REMOTE_PASSWORD"; ManagementScope sc =

WMI The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

社会主义新天地 提交于 2019-11-30 15:17:50
My application requirement is like below. Application will run on domain admin system which will ping all machine under that domain, it will take disk drive, CPU and RAM details from all domain systems. Whenever I'm trying to ping machine I'm getting error that "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" Code I'm using to connect remote machine is ConnectionOptions options = new ConnectionOptions(); options.EnablePrivileges = true; options.Impersonation = ImpersonationLevel.Impersonate; options.Username = System.Configuration.ConfigurationSettings.AppSettings[

Run MySQL query on remote machine through ssh in command line

你离开我真会死。 提交于 2019-11-30 11:24:27
问题 I am trying to run MySQL query on remote machine with this command: ssh user@192.168.2.26 "mysql -uroot -proot -e \"use test";"" I am not able to use that database. Please suggest a working command. 回答1: Try this: mysql -h host -u root -proot -e "show databases;"; 回答2: Try this: ssh root@host "mysql database -e 'query to run on table_name; more queries to run;'" Same can be done with user@host if that user has permission to execute SQL queries let alone launch mysql in general. Using -e is

RabbitMQ client can't connect to remote RabbitMQ server [closed]

夙愿已清 提交于 2019-11-30 11:01:19
I have a nodejs client that uses bramqp for connecting to RabbitMQ server. My client can connect to a Rabbit MQ server in localhost and works well. But it's unable to connect to a remote RabbitMQ server on other machine. I opened port 5672 in the remote server, so I think that the problem is in the configuration of rabbitMQ server. How can I solve this problem? Gabriele The problem seems the new rabbitmq access control policy Please read this post: Can't access RabbitMQ web management interface after fresh install I think it can help you! 来源: https://stackoverflow.com/questions/23487238

Connect to MySQL on AWS from local machine

丶灬走出姿态 提交于 2019-11-30 10:29:52
问题 I am trying to set up a dev environment on my local machine that accesses a MySQL DB on AWS, but I keep getting a "Can't connect" message. mysql_connect('xxx.xxx.xxx.xxx:3306', 'USERNAME', 'PASSWORD'); I also commented out the bind-address in the my.cnf file, and granted permissions to the IP address that is connecting. Anyone ever successfully get this working? 回答1: I suppose this is firewalled by Amazon, try using a SSH tunnel: http://blogs.oracle.com/divyen/entry/connecting_mysql_server_on

How to remotely control a Windows Service with ServiceController?

元气小坏坏 提交于 2019-11-30 07:52:21
问题 I'm trying to control Windows Services that are installed in a remote computer. I'm using the ServiceController class. I have this: ServiceController svc = new ServiceController("MyWindowsService", "COMPUTER_NAME"); With this, I can get the status of the Windows Service like this: string status = svc.Status.ToString(); But I can't control the Windows Service (by doing svc.Start(); or svc.Stop(); ). I get the following exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' That

Jenkins—get “Build Time Trend” values using “Remote Access API”

孤者浪人 提交于 2019-11-30 06:43:40
Is there a way that we can get all Jenkins-"Build Time Trend" information ( Build number + Status[success/failed etc] + Duration ) for an application; using the Jenkins remote access API? Or else I would appreciate if you could post a link of any documentation on how to get information from Jenkins using the Remote Access API. Most of the sources consist of the way of running jobs, but I couldn't find any, which shows how to fetch information from jenkins. Thanks! You can use something like this URL: http://jenkins:8080/job/MY-APPLICATION/api/json?tree=builds[number,id,timestamp,result

MobaXterm drag-and-drop panel missing

China☆狼群 提交于 2019-11-30 06:39:57
I need to run a program from my windows xP machine thats installed on a remote UNIX machine using MobaXterm but I have very little experience with this sort of thing. I can login into the machine using ssh and start the program without a problem. That program needs files that I have on my windows computer to process though and I want to copy them over to that remote machine. Unfortunately the drag-and-drop file transfer panel that is mentioned regularly on mobaxterm help sites isn't present and I can't figure out how to make it appear. Could someone suggest how to get that drag-and-drop panel