remote-access

Double hop access to copy files without CredSSP

孤者浪人 提交于 2019-11-28 00:42:46
问题 hello, We have large environment with hundreds of virtual machines. During our services deployment we need to copy some files from build drop to all these machines. So, we have: User machine, where deployment scripts executing Build drop machine, where files are Target machine Powershell is used as script language. Something like: $buildDrop = "\\sourceMachine\Build" $machineTarget = "targetMachine" Invoke-Command -ComputerName $machineTarget -ArgumentList $buildDrop -ScriptBlock { Param(

Connecting a remote JMS client to GlassFish 3

邮差的信 提交于 2019-11-28 00:34:43
问题 I am trying to connect to GlassFish 3's JMS service from a standalone remote client. However I am getting a java.lang.ClassNotFoundException: com.sun.messaging.jms.ra.ResourceAdapter. Any ideas on how to fix this? Here's my setup so far: Glassfish 3 JMS Service in LOCAL mode (I am assuming that EMBEDED mode will not work in this case because it bypasses the network stack) JNDI properties are specified as follows: java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory

Apache Cassandra remote access

别说谁变了你拦得住时间么 提交于 2019-11-27 23:00:58
问题 I have installed Apache Cassandra on the remote Ubuntu server. How to allow remote access for an Apache Cassandra database? And how to make a connection? 回答1: Remote access to Cassandra is via its thrift port (although note that the JMX port can be used to perform some limited operations). The thrift port is defined in cassandra.yaml by the rpc_port parameter, which defaults to 9160. Your cassandra node should be bound to the IP address of your server's network card - it shouldn't be 127.0.0

deploy/debug java code on a remote server using Intellij

拟墨画扇 提交于 2019-11-27 20:15:18
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. CrazyCoder There is a step by step deployment guide for PhpStorm, but for IntelliJ IDEA it would be almost the same. Here is the

Check status of services that run in a remote computer using C#

会有一股神秘感。 提交于 2019-11-27 19:06:39
I'm using the following code. ServiceController MyController = new ServiceController(); MyController.MachineName = server_txt.Text.Trim(); MyController.ServiceName = "Service1"; string msg = MyController.Status.ToString(); Label1.Text = msg; This code works fine for network computers where I have access. How to change this so it works for the systems in different domains using credentials? If you use WMI, you can set the credentials in 'ConnectionOptions'. ConnectionOptions op = new ConnectionOptions(); op.Username = "Domain\\Domainuser"; op.Password = "password"; ManagementScope scope = new

Impersonation the current user using WindowsImpersonationContext to access network drive

一笑奈何 提交于 2019-11-27 18:57:33
问题 I need to access a remote drive from a Web App. The drive isn't accessible to the ASP.NET process, so I want to impersonate the current user for the request. I saw some basic examples using WindowsImpersonationContext, and have tried the following. WindowsImpersonationContext impersonationContext = null; try { impersonationContext = ((WindowsIdentity)User.Identity).Impersonate(); file.SaveAs(filePath); } finally { if (impersonationContext != null) { impersonationContext.Undo(); } } I'm still

Accessing a stateless EJB from another instance of Glassfish

余生长醉 提交于 2019-11-27 16:17:56
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 Java Entity Beans in it, and also an EJB with a remote interface that uses these entity beans. My goal is

start remote process within the context

冷暖自知 提交于 2019-11-27 15:39:33
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 processes in task manager). I want him to see notepad window dialog. Does anybody know how to achieve

How to set mongod.conf bind_ip with multiple ip address

主宰稳场 提交于 2019-11-27 13:38:56
问题 I am a newbie for setting up the server environment and mongoDB. This may sounds something really simple, however, I really need your help on it. I am trying to connect to my virtual machine which runs the mongodb instance from the local machine, which I believe should be similar to the production environment when I run it on a separate remote server. The environment is as following: Private IP for virtual machine: 192.168.184.155 Public IP for both local machine and virtual machine: 96.88

Developing PHP with Eclipse on a remote server (FTP) on Windows

北城以北 提交于 2019-11-27 12:27:45
问题 I'm a real klutz when it comes to Eclipse, but I'm also poor, which is why it is the option I've chosen. I've installed Eclipse 3.5, Eclipse for PHP, and RSE. I've actually gotten to a point where I can create a new (local) project and download all files to my local (Windows) computer. I'm not running any kind of web server on my local box, and am hoping to keep it that way for now. I've imported my remote folder into my local project, where I can see all my PHP files and edit them. But of