Most Popular

1500 questions
71
votes
9 answers

Cannot SSH: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY

We have a server on Amazon EC2 running SSH is on a standard (22) port. I placed my public key at the /.ssh/authorized_keys file. The fun thing is that yesterday it was working great! But today, I don't know what happened! I just can't log…
bakytn
  • 1,287
71
votes
8 answers

How to check if a port is open for remote system(ubuntu)

Is it possible to check that if the ports are open for the remote system on ubuntu server? I should able to check if a port(eg:ssh) on my machine is open for the remote machine.
user53864
  • 1,753
  • 11
  • 37
  • 67
71
votes
11 answers

How to mount a CD/DVD ISO in Windows 7?

Does Windows 7 have native support for mounting CD/DVD ISO images? If not, what is the best tool to use for that under Windows 7 64-bit? I am looking for a solution to allow installing MSDN downloads without burning them to CD/DVD.
Jim McKeeth
  • 1,916
71
votes
2 answers

How to restart rsyslog daemon on ubuntu

how can i restart rsyslog or rsyslogd on ubuntu 10 root@terminator:/etc/init.d# service rsyslog status rsyslog stop/waiting root@terminator:/etc/init.d# service rsyslog stop stop: Unknown instance: root@terminator:/etc/init.d# service rsyslog…
John
71
votes
4 answers

Is there a maximum size for content of an HTTP POST?

Is there a maximum size for an HTTP POST? And if there is a max size, is it determined by the protocol or is it at the discretion of the server?
user11480
71
votes
11 answers

Linux: How to use a file as input and output at the same time?

I've just run the following in bash: uniq .bash_history > .bash_history and my history file ended up completely empty. I guess I need a way to read the whole file before writing to it. How is that done? PS: I obviously thought of using a temporary…
MilliaLover
  • 977
  • 1
  • 8
  • 8
71
votes
11 answers

Linux: using find to locate files older than

find has good support for finding files the more modified less than X days ago, but how can I use find to locate all files modified before a certain date? I can't find anything in the find man page to do this, only to compare against another files…
DrStalker
  • 7,036
71
votes
1 answer

NMAP: Check if port 80 and 8080 is open

In our company, I want to check if users are running web servers on port 80 and 8080. I downloaded nmap and ran this command: nmap -p 80,8080 192.168.1.0-255 I got a list of IPs and tried to access them in my browser (EG: 192.168.1.1:8080) but…
Ian
  • 921
71
votes
10 answers

Linux: how to explicitly unswap everything possible?

I've launched something that took lots of memory and now everything lags a lot. I guess all applications' memory has gone to swap in order to free some space for the memory-intensive process, and now everything is slowly returning to RAM when…
kolypto
  • 11,218
70
votes
15 answers

Are IP addresses "trivial to forge"?

I was reading through some of the notes on Google's new public DNS service: Performance Benefits Security Benefits I noticed under the security section this paragraph: Until a standard system-wide solution to DNS vulnerabilities is universally…
Jeff Atwood
  • 13,174
  • 20
  • 75
  • 93
70
votes
5 answers

How to search Powershell command history from previous sessions

I use current Windows 10 with Powershell 5.1. Often, I want to look up commands I have used in the past to modify and/or re-run them. Inevitably, the commands I'm looking for were run in a previous or different PowerShell window/session. When I…
70
votes
3 answers

Is the PHP option 'cgi.fix_pathinfo' really dangerous with Nginx + PHP-FPM?

There has been a lot of talking about a security issue relative to the cgi.fix_pathinfo PHP option used with Nginx (usually PHP-FPM, fast CGI). As a result, the default nginx configuration file used to say: # NOTE: You should have…
Totor
  • 2,996
70
votes
10 answers

How do I check the postfix queue size?

What's the postfix equivalent to sendmail -bp?
70
votes
3 answers

Search ec2 instance by its name from aws command line tool

I have an instance named dev-server-03. Now how can I search all dev-server-* instances from command line? I am using aws cli tool.
70
votes
9 answers

How can I automatically restart a Windows service if it crashes?

I have a Windows service that exits unexpectedly every few days. Is there a simple way to monitor it to make sure it gets restarted quickly if it crashes?
Liam
  • 1,411