remote-access

Kill a process on multiple remote machines

醉酒当歌 提交于 2019-12-02 02:26:45
I am looking as the title says to kill a process (for example name.exe) on multiple remote machines. I can do it individually using pskill or taskkill using (for example): pskill -t \ -u -p name.exe but this becomes impractical with 50+ machines. Is there a way to make it read a text file of IP Addresses like psexec does using the @C:\name.txt or in powershell or something similar? All devices are on the same domain. Thank you in advance for your help. If you have a text file with a list of machines you could do it trivially with: get-content serverlist.txt | Foreach-object {& pskill -t \\$_

Reading remote file size using filesize

僤鯓⒐⒋嵵緔 提交于 2019-12-02 01:46:10
I read the manual that filesize() is able to calculate file size from remote file. However, when I try to do that with snippet below. I got error PHP Warning: filesize(): stat failed for http://someserver/free_wallpaper/jpg/0000122_480_320.jpg in /tmp/test.php on line 5 Here's my snippet: $file = "http://someserver/free_wallpaper/jpg/0000122_480_320.jpg"; echo filesize( $file ); Turns out, I can't use HTTP for filesize(). Case close. I'll use snippet here as a work-around solution. filesize doesn't work for HTTP - it depends on stat , which isn't supported for the HTTP(S) protocol . The PHP

Host (iPage) does not allow remote access. So how can I reach/edit my database?

寵の児 提交于 2019-12-02 00:06:23
I have registered a domain in iPage.com. But recently i learnt that they are not allowing remote access to database. i am coding my webpage in php5 kohana framework, so when i use mysql_connect(hostname,username,password) function in PHP, it returns an error and cannot connect to database. Neither via SQLyog (which i use to access remote databases) i can connect. What can i do in my codes to create entries into my iPage database? Do i need any additional application or something? I am not sure but i think they dont allow ssh and html tunneling too. You can use HTTP-tunneling in SQLyog More

How to access Laravel Homestead on other devices?

元气小坏坏 提交于 2019-12-01 22:29:27
My machine and Android devices are on the same network. Machine IP: 192.168.0.11 The IP where Homestead is running: 192.168.10.10 If I enter 192.168.0.11:8000 on my Android device I can use only one site. How can I enter all sites stored in Homestead? This is my Homestead.yaml file: --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Homestead-Projects to: /home/vagrant/Homestead-Projects sites: - map: site1.com to: /home/vagrant/Homestead-Projects/Site1/public - map: site2.app to: /home/vagrant/Homestead

Knowing if a remote port forward was successful?

前提是你 提交于 2019-12-01 18:00:24
I am trying to setup some reverse ssh tunnels so I can access my home network by bouncing off some server with a public IP. When I run this command: ssh -R :[port_XX]:localhost:22 some_user@my_server Even if "port_XX" is in use, it will still make a successful ssh connection to "my_server". If I am running this command directly, I can see the problem when it gives me a warning: "Warning: remote port forwarding failed for listen port [port_XX]" However, I am starting this ssh session inside a screen session using a cron job. How can I programmatically check if the remote port forwarding was

Execution of interactive command in remote Powershell session not working

心已入冬 提交于 2019-12-01 17:24:30
问题 I am having troubles executing commands in a remote PowerShell session which need user interaction. Example: I enter a remote session Enter-PSSession -ComputerName mobius In this session I execute a command which asks for a password: [mobius]: PS C:\Windows\system32> & 'c:\Program Files (x86)\Putty\plink.exe' merlin -l joe joe@merlin's password: c:\Program Files (x86)\Putty\plink.exe : Using username "plakat". + CategoryInfo : NotSpecified: (Using username "plakat".:String) [],

How to get the remote user's username in java

佐手、 提交于 2019-12-01 14:48:31
I am working on application which doesn't have any login mechanism, any user in my organization can use that. But I want to pick the username of the remote users who will use my tool. I have a button clicking on that I want to get their usernames. I tried request.getRemoteUser got null . tried System.getenv("USERNAME") getting the logged in user of the localhost where the server resides. Tried getHostName , System.getProperty got the localhost name. Tried this also - new com.sun.security.auth.module.NTSystem().getName() but same result. I am using java6, windows server and glassfish3 server.

using SSH to run a cleartool command with agruments on remote a linux machine

萝らか妹 提交于 2019-12-01 14:08:52
when I run this then everything work: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'pwd' cm_myview however if I have more than two arguments after exec like this: C:\PROGRA~1\cwRsync\bin\ssh.exe -o 'StrictHostKeyChecking no' 10.10.10.10 -l username /usr/atria/bin/cleartool setview -exec 'cd /user' cm_myview then it will fail with the error: extra argument:"cm_myview" so right now if there is more than 2 argument after -exec, then it will say those argument are extra, anyone know how I can fix this. Thanks. I am

How to get the remote user's username in java

落爺英雄遲暮 提交于 2019-12-01 13:30:44
问题 I am working on application which doesn't have any login mechanism, any user in my organization can use that. But I want to pick the username of the remote users who will use my tool. I have a button clicking on that I want to get their usernames. I tried request.getRemoteUser got null . tried System.getenv("USERNAME") getting the logged in user of the localhost where the server resides. Tried getHostName , System.getProperty got the localhost name. Tried this also - new com.sun.security.auth

Standalone JBoss EJB Client application - how to get JNDI connection - “distinct name”

丶灬走出姿态 提交于 2019-12-01 13:17:05
问题 There is a plethora of frustratingly incorrect (better description - "close but no cigar") information concerning remote access to JBoss EJBs from a standalone application. I've been beating my head against this wall for over a day with no success. I'm trying to port an EJB from WebLogic to JBoss, which is called by a standalone application running on another server. I've been here, here, and several other places chasing down various "solutions" to my problem without success. I've tried