Hot answers tagged

34 votes

RDP file with embedded password asks for password

I had the issue on Windows 10 with perma asking password when I try to connect to a new machine. First, the password line in the RDP must be named: password 51:b:myEncryptedPassword And the pass must ...
Makusensu's user avatar
  • 441
28 votes

Website responds very slow using remote database

How to speed up the connection between the server in the US and the database in Asia? You probably can't. US-Asia is a long distance, and there's latency involved. Simply put: the light has a finite ...
vidarlo's user avatar
  • 8,162
14 votes

Website responds very slow using remote database

Does your web application make multiple separate database queries? Does one query depend on the previous query, or are there independent queries that could both be in flight in parallel to overlap ...
Peter Cordes's user avatar
11 votes

RDP file with embedded password asks for password

Open the Group Policy editor (Start > Run > gpedit.msc) and navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection ...
Net Runner's user avatar
  • 6,189
9 votes

Escaping spaces in a remote path when using rsync over a remote SSH connection

The problem: rsync over ssh uses two shells to run: one local and one remote. The argument [email protected]:/path/to/dest/some\ dir/ is first interpreted by your local shell. Therefore, it becomes user@...
Grégory Boddin's user avatar
9 votes

PsExec Slow to connect when Windows Firewall Enabled

Apparently this is an issue with the Group Policy client when enabling "Remote Service Management". The fix is to run the following command: netsh advfirewall firewall set rule name="Remote Service ...
Jeff McJunkin's user avatar
9 votes

Use Powershell to start a GUI program on a remote machine

I was able to get this working using PsExec as mentioned in another answer. Download PSTools Unzip to C:\Windows\PSTools Add C:\Windows\PSTools to your PATH Get process ID of RDP session (tasklist ...
Victor Michnowicz's user avatar
7 votes

LUKS Automatic unlock of with key file on remote ubuntu server

tang and clevis can achieve that even with encrypted root partition on CentOS 7 (and I personally use it to automate boot on my home network and at work). Have a look and check if it plugs into your ...
Tomek's user avatar
  • 3,435
6 votes
Accepted

SQL Server 2016 remote access denied

Are the appropriate protocols enabled in SQL Configuration Manager? My guess is they're not. Check that first.
joeqwerty's user avatar
  • 110k
6 votes

Website responds very slow using remote database

You can't improve on the speed of light. {citation needed} Instead of querying intercontinentally, you might need to look into whatever replication MySQL offers. You'd need a webserver and a database ...
Criggie's user avatar
  • 2,399
5 votes

Use Powershell to start a GUI program on a remote machine

You can create a 'callable hook' on the remote machine: It's a scheduled task set to "run only when user is logged on," assigned to run under the account of the user who will be logged in upon ...
Jordan Stefanelli's user avatar
5 votes
Accepted

using named-pipes to control a remote ssh session in BASH

This was a fun one (and incredibly useful!) to noodle on. In the land of input/output redirection, there is much flexibility, and thereby several options, but here's what worked for me. First, truly,...
DotA's user avatar
  • 66
4 votes

Run remote powershell as administrator

Regarding Windows Updates on remote servers, I was able to get it working by setting up a JEA endpoint on the remote server to run as a local virtual account. From https://docs.microsoft.com/en-us/...
jsmitty's user avatar
  • 41
4 votes

Let the local machine beep when some event happen on remote?

This worked for me on both OSX and a remote unix server, beeping through the normal sound output: echo -e '\a' beep(){ echo -e '\a';} beep sleep 5 & beep # beeps now sleep 5; beep # beep in 5s # ...
Rivenfall's user avatar
  • 141
4 votes
Accepted

WinRM-Service is running but can't be reached

As discussed in the comments, local group policy is blocking the winrm quick config from creating http listener on the server - to solve this conflict. connect to the remote server run the group ...
Sum1sAdmin's user avatar
  • 1,944
4 votes

Can a hacker determine all ports forwarded for remote desktop?

Short answer. Yes Longer answer. Services with ports open to the Internet can be discovered regardless of what port they're listening on. RDP is no exception. Port scanning is quite common. The ...
Ryan Bolger's user avatar
  • 16.8k
4 votes
Accepted

MySQL hacked on AWS AMI: 'Pay to get data back' - how could this be possible and how to avoid it next time?

Security group rules show that you opened 3306 for everyone and it is dangerous. Don't allow traffic to 3306 from everywhere. Restrict 3306 access to known ip,s and better option is to restrict it ...
xs2rashid's user avatar
  • 204
4 votes

RDP file with embedded password asks for password

Try adding prompt for credentials:i:0
Angel Porlan's user avatar
4 votes
Accepted

Connecting to a remote mysql database using its private IP Address

It's likely that the mysql server is bound to the loopback address, either 127.0.0.1 or the ipv6 equivalent, and so you would have to open that up to the LAN network. You can check that with the ...
Tom's user avatar
  • 11.2k
4 votes
Accepted

Using DD to clone a 600GB drive using SSH to remote location with only 60 GB of allocated data [server migration]

Ok, guys... finally, server migration was executed with status SUCCESS! Data copy time was aprox 5hs 30Min. Command & total time: dd if=/dev/sda bs=5M conv=fsync status=progress | gzip -c -9 | ssh ...
Diego Ferrarese's user avatar
3 votes

Use Powershell to start a GUI program on a remote machine

If you want to avoid RDPing to get process id in Victor's answer, you can do it by invoking query session command on the remote machine. Sample Powershell script $user = "some_user" $password = "...
Ankit Aggarwal's user avatar
3 votes
Accepted

Can't Remote Desktop To Hyper-V Server 2012 R2

So I found some info in regards to the issue I was having. Like suggested it is a firewall issue and for future users these are the commands I ran to disable the firewall and then add in some rules ...
Pie's user avatar
  • 301
3 votes

Does Windows 2012 Terminal Server enforce a connection limit based on number of license CALs?

No, there is not a connection limit based on the number of User CALs. User CALs have traditionally not been enforced. Also, the license requirements do not factor in concurrency. A User CAL is ...
Greg Askew's user avatar
  • 36.3k
3 votes

ssh connection stopped working

You are getting a tcp timeout. No response from the sever not even connection refuse. As your are unable to ssh to other servers too, it look like you are being blocked for outgoing 22 port somewhere ...
Arjun sharma's user avatar
3 votes
Accepted

Use Powershell to run an elevated executable

You can add your admin user to local administrators with a startup script of net localgroup administrators domain\adminuser /add. I don't think that's necessary, though. I'd think that your batch ...
Katherine Villyard's user avatar
3 votes

Network Administrator

I would definitely consider using a config management tool like ansible, salt, chef, or puppet (or others I can't think of just now). If you have network access, it not only allows you to template ...
iwaseatenbyagrue's user avatar
3 votes

MySQL hacked on AWS AMI: 'Pay to get data back' - how could this be possible and how to avoid it next time?

The first thing you should do to prevent this happening again is replacing every single instance of MySQL you have. While I would recommend you not consider paying for your data, if you must, then ...
iwaseatenbyagrue's user avatar
3 votes

Powershell replace host file of remote machines

I think the meat of your question is how to you copy the modified file to the remote machine. This can be accomplished over a powershell session, without any other firewall rules of file sharing. $...
Eric's user avatar
  • 554
3 votes

LUKS Automatic unlock of with key file on remote ubuntu server

You have various solutions online (like here) where a small ssh server (busybox+dropbear) is included in initrd to run it at boot time before filesystem mounting and let it be contacted to provide the ...
Patrick Mevzek's user avatar
3 votes

Execute local bash scripts on remote server but needs user input

The method you use for remote script execution generates a conflict between code and data flows. I mean... During the execution of ssh user@server 'bash -s' < $script_dir/script.sh, you allocates ...
Anderson Medeiros Gomes's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible