remote-access

Accessing a stateless EJB from another instance of Glassfish

最后都变了- 提交于 2019-11-26 18:36:00
问题 there is an issue that troubles me and I cannot find any uniform way to solve it around the internet. I am developing an enterprise application using Java EE, Glassfish and Netbeans. I have two instances of Glassfish set up, and I am building an enterprise application split among the two. I have a web page (with a couple of JSPs and a couple of HttpServlets) running on one instance of Glassfish. On the other instance, I want to implement the business logic of the app. That is, I have some

start remote process within the context

半城伤御伤魂 提交于 2019-11-26 17:19:05
问题 I am wondering how to start process remotely within the users context like he started it. Let me explain. I know how to start process remotely, so for example I want to start notepad: Invoke-WmiMethod win32_process -name create -ComputerName $remoteMachine -ArgumentList "notepad" -credential (Get-Credential) the problem is that it starts notepad "in the backround" (not in the users context), so in this case he won't see opened "notepad" dialog/process (he will see notepad just in the list of

Passing a variable to a remote host in a bash script with ssh and EOF [duplicate]

♀尐吖头ヾ 提交于 2019-11-26 14:39:30
问题 This question already has an answer here: Passing external shell script variable via ssh 2 answers I have a script parsing a list of servers, looking for some stuff and executing commands if the circumstances are correct. The main server is connecting to them via ssh, executing all commands that are in the EOF statement: #!/bin/bash # parsing servers # defining one local variable $VAR ssh -T -p 1234 root@"server-ip" "$variable" << 'EOF' # doing some stuff... var_result=$(mysql -hhost -uuser '

How do I pass credentials to a machine so I can use Microsoft.Win32.RegistryKey.OpenRemoteBaseKey() on it?

不打扰是莪最后的温柔 提交于 2019-11-26 14:08:22
问题 This .NET API works OK if I'm trying to open the Registry in a machine that's in the same domain as I am (and my logged-on user has admin rights on the target machine). It gets tricky if it's an out-of-domain machine with a different, local administrative user (of whom I do have the password). I tried to use WNetUseConnection() (which has served me well in the past in situations where what I wanted was to read a remote disk file) prior to calling OpenRemoteBaseKey(), but no dice -- I get an

How to get remote access to a private docker-registry?

你。 提交于 2019-11-26 12:52:29
问题 I\'m trying to setup a private docker registry using the image taken from: https://github.com/docker/docker-registry Just by running: docker run -p 5000:5000 registry I can pull/push from/to this repository only from localhost, but if i try to access it from another machine (using a private address on the same LAN) it fails with an error message: *2014/11/03 09:49:04 Error: Invalid registry endpoint https ://10.0.0.26:5000/v1/\': Get https:// 10.0.0.26:5000/v1/_ping: Forbidden. If this

Mysql adding user for remote access

倖福魔咒の 提交于 2019-11-26 12:38:56
I created user user@'%' with password 'password . But I can not connect with: mysql_connect('localhost:3306', 'user', 'password'); When I created user user@'localhost' , I was able to connect. Why? Doesn't '%' mean from ANY host? apesa In order to connect remotely you have to have MySQL bind port 3306 to your machine's IP address in my.cnf. Then you have to have created the user in both localhost and '%' wildcard and grant permissions on all DB's as such . See below: my.cnf (my.ini on windows) #Replace xxx with your IP Address bind-address = xxx.xxx.xxx.xxx then CREATE USER 'myuser'@'localhost

MySQL remote connection fails with “unknown authentication method”

两盒软妹~` 提交于 2019-11-26 12:19:58
问题 I am trying to remotely connect to MySQL server online from my local machine, but I am getting the following error: Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in C:\\xampp\\htdocs\\ticket\\terminal\\sync.php SQLSTATE[HY000] [2054] The server requested authentication method umknown to the client My local MySQL server version is 5.5.27, libmysql - mysqlnd 5.0.10 The remote MySQL server version is 5.5.23, the mysqlnd version

Copy file to remote computer using remote admin credentials

冷暖自知 提交于 2019-11-26 11:12:28
问题 I am using C#... I need the ability to copy a set of files to about 500 unique computers. I have successfully been able to use the LogonUser() method to impersonate a domain account that has the required permissions to copy the files. The destination path for the files is something like: \\\\RemoteComputer\\C$\\SomeFolder My questions is...is there a way to do this without having to use an all-powerful domain account (these computers may not be joined to the domain in the future)? I have the

deploy/debug java code on a remote server using Intellij

左心房为你撑大大i 提交于 2019-11-26 11:11:27
问题 I want to run my java code on a remote server for faster speed (The server is very powerful). What I want is to connect my Intellij to that remote server and run my code. But I want to still use the IntelliJ on my local machine (i.e. my laptop). I found a config section in IntelliJ which is in Default Setting->Build-executation-deployment-> Deployment and there I can set the address of my remote server and username and password. But I don\'t know what to do next. 回答1: There is a step by step

Get current user&#39;s credentials object in Powershell without prompting

女生的网名这么多〃 提交于 2019-11-26 09:45:54
问题 I have a Powershell script that is going to be run through an automation tool against multiple servers. It works fine on Windows machines, as the remote calls use the tool\'s service account without any need for prompting or exposing any credentials in code. This script also runs against Linux machines via SSH using the SharpSSH package. SharpSSH does not automatically use the Powershell user\'s credentials but requires either a username and password, an RSA key file, or a PSCredential object