remote-access

Remote Process Execution

一笑奈何 提交于 2019-12-24 04:32:19
问题 My scenerio is connection to remote machine with C#.Net, and listing all processes with that remote computer. I can kill a process, or start a new process at remote. The problem is, when I execute a new process on remote, I can see the process on task manager, but it doesnt apeear on windows screen. Any idea why its not appearing on windows, but appearing on task manager/ process. Here is my execution code private void btnStartNew_Click(object sender, EventArgs e) { object[] arrParams = {

Execute COPY command in remote database using local file

余生颓废 提交于 2019-12-24 03:47:09
问题 I'm trying to execute the Postgres COPY command. COPY warehouse_terminal.test_table FROM 'C:\file.csv' DELIMITERS E'\t' CSV HEADER QUOTE E'\"' ESCAPE E'\\' NULL AS ''; The problem is, the db where I'm going to use this is remote, and the file "file.csv" is in my local machine in C:\ . As a result, the file is not read. Remote db, but local file. How can I get this working? 回答1: Use \copy of the psql client on your local machine, it's a wrapper for COPY for just this purpose. More details:

How to get owner of process running on remote machine without WMI

一世执手 提交于 2019-12-23 23:24:30
问题 I'm creating remote task manager app and I'm trying to figure out how to get process owner of process running on remote machine without WMI. With WMI it's really easy, but it's too slow. I'm tried to use WTSQuerySessionInformation, but it only worked for local machine. For closer specification, my remote task manager app will run on workstations and will connect against another workstations and also against servers in the same network. User, which will run the app, wil be administrator on

How to connect to a remote Jupyter notebook server? [closed]

匆匆过客 提交于 2019-12-23 16:58:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I want to run a jupyter notebook server in a machine to which I have ssh access and that I am already able to run notebooks locally. How can I setup the jupyter notebook so it can be accessed remotely ? 回答1: If you have ssh access to the machine that will run the server, follow the next steps: 1) In the machine

PHP Connect to PostgreSQL using ssh2_tunnel

喜夏-厌秋 提交于 2019-12-23 15:27:58
问题 I'm busy trying to connect to a PostgreSQL database (running on a different server) after creating an ssh2_tunnel to that server. The ssh2_tunnel seems to be working fine but my pg_connect is not working and I'm hoping I'm missing something small <?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); echo "<span>test script<br /></span>"; $connection = ssh2_connect('xxx.xx.xx.xx', 22); if (ssh2_auth_pubkey_file($connection, 'usname', './ssh_key.pub', '.

C# Get IP of Remote Computer on Separate DNS Server

半世苍凉 提交于 2019-12-23 05:25:51
问题 I am working on a utility for managing multiple computers in a specified domain (not necessarily the domain the computer the application is running on is a member of) within a specified directory root. The problem I am running into is once I have the collection of computer names from the external AD OU, I am unable to manage based on computer name because of DNS. Is it possible to perform DNS lookup on an external DNS server provided the IP of DNS server and credentials for that domain? Here

Cannot connect to remote MySQL with VB6 (10060)

余生长醉 提交于 2019-12-23 01:55:29
问题 I got a hosting plan from GKG.net and I have a VB6 connection string to remotely reach MySQL database in it. I followed all instructions and tutorials about how to reach MySQL server remotely. Everything was fine till i get an error that says: [MySQL][ODBC 3.51 Driver] Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10060) I searched for a solution over the net for hours but still there is nothing makes sense about it.. I double checked my connections.. I can ping to my static ip, but

Cannot connect to remote MySQL with VB6 (10060)

a 夏天 提交于 2019-12-23 01:55:08
问题 I got a hosting plan from GKG.net and I have a VB6 connection string to remotely reach MySQL database in it. I followed all instructions and tutorials about how to reach MySQL server remotely. Everything was fine till i get an error that says: [MySQL][ODBC 3.51 Driver] Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10060) I searched for a solution over the net for hours but still there is nothing makes sense about it.. I double checked my connections.. I can ping to my static ip, but

How can I launch .cmd files on a remote machine?

核能气质少年 提交于 2019-12-22 11:05:09
问题 I need to be able to launch a .cmd file that is on a remote machine, from within the directory that the file resides on that machine . I've tried: invoke-command -ComputerName test123 -ScriptBlock { cmd /c c:/myfile.cmd } in powershell, which launches the .cmd, but then fails because it can't find the corresponding .cmds that this one launches (which all reside in the same directory). Is there a way to launch this .cmd file, and have it's execution persist? i.e., even after the powershell

Make Jenkins invisible to remote users

戏子无情 提交于 2019-12-22 09:47:56
问题 I have a Jenkins server on my local Windows device, but I want to make it invisible to the outside world (office rules regarding servers). The obvious and unsubtle way, which works satisfactorily, is to set up a firewall rule to block incoming access to its port, but I feel there must be a Jenkins setting to stop it advertising its services to anyone but localhost. Can anyone tell me if there is? Note that setting up user credentials is not a valid solution, as the server being visible but