Most Popular
1500 questions
210
votes
13 answers
hosts file ignored, how to troubleshoot?
The hosts file on Windows computers is used to bind certain name strings to specific IP addresses to override other name resolution methods.
Often, one decides to change the hosts file, and discovers that the changes refuse to take effect, or that…

Superbest
- 5,265
- 3
- 15
- 11
209
votes
10 answers
How to refresh hosts file without rebooting
On Windows, how do you refresh the hosts file without rebooting?
kakridge
209
votes
1 answer
SSH use only my password, Ignore my ssh key, don't prompt me for a passphrase
This is a question regarding the OpenSSH client on Linux, MacOSX and FreeBSD.
Normally, I log into systems using my SSH key.
Occasionally, I want my SSH client to ignore my SSH key and use a password instead. If I 'ssh hostname', my client prompts…

Stefan Lasiewski
- 23,667
- 41
- 132
- 186
208
votes
9 answers
How to check sshd log?
I have Ubuntu 9.10 installed with sshd and I can successfully connect to it using login and password. I have configured an RSA key login and now have "Server refused our key" as expected. Ok, now I want to check sshd log in order to figure out a…

grigoryvp
- 3,655
- 11
- 39
- 59
207
votes
8 answers
How to setup passwordless `sudo` on Linux?
How can passwordless sudo access be setup on either RHEL (Fedora, CentOS, etc) or Ubuntu distributions? (If it's the same across distros, that's even better!)
Setting: personal and/or lab/training equipment with no concern for unauthorized access…

warren
- 18,369
- 23
- 84
- 135
205
votes
5 answers
Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server.
I have used apt-get to install nginx and all seems fine.
I have a couple of questions.
What is the…

Seth Spearman
- 2,211
- 2
- 14
- 10
204
votes
9 answers
Heartbleed: What is it and what are options to mitigate it?
This is a Canonical Question about understanding and remediating the Heartbleed security issue.
What exactly is CVE-2014-0160 AKA "Heartbleed"? What is the cause, what OSs and versions of OpenSSL are vulnerable, what are the symptoms, are there…

Jacob
- 9,204
- 4
- 45
- 56
204
votes
3 answers
Possible to change email address in keypair?
I've created an RSA keypair that I used for SSH, and it includes my email address. (At the end of the public key.)
I've now changed my email address.
Is it possible to change the email address on the key, or is it part of the key and I would have to…

Ram Rachum
- 5,231
- 7
- 34
- 46
204
votes
15 answers
How to reconnect to a disconnected ssh session
Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we experience a large number of disconnects due to…

palehorse
- 4,299
- 5
- 29
- 27
203
votes
10 answers
How to install tzdata on a ubuntu docker image?
I have the following line in the Dockerfile.
RUN apt-get install -y tzdata
When I run it, it asks for my input. After I provided my input, it hung there. Does anybody know how to solve this problem?
Step 25/25 : RUN apt-get install -y tzdata
--->…

user1424739
- 2,189
- 2
- 13
- 9
203
votes
5 answers
What is a glue record?
This is a Canonical Question about DNS glue records.
What exactly (but briefly) is a DNS glue record? Why are they needed and how do they work?

LanceBaynes
- 3,087
- 9
- 29
- 31
202
votes
4 answers
Meaning of the buffers/cache line in the output of free
Why does my server show
total used free shared buffers cached
Mem: 12286456 11715372 571084 0 81912 6545228
-/+ buffers/cache: 5088232 7198224
Swap: 24571408 54528 24516880
I have no idea on…

Muahmmad Zeeshan
- 2,123
- 4
- 15
- 13
199
votes
6 answers
Non interactive git clone (ssh fingerprint prompt)
I want to clone a repo in a non-interactive way. When cloning, git asks to confirm host's fingerprint:
The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established.
RSA key fingerprint is…

qwe
- 2,037
- 2
- 14
- 5
199
votes
9 answers
How to start/stop/restart launchd services from the command line?
How do I restart, say for example my httpd or afpd, running any Mac OS X >= 10.5 (Leopard-), without having to use the GUI and go to System Preferences -> Sharing and unchecking/checking "Web Sharing"?
I'm looking for the canonical equivalent to…

conny
- 2,369
- 2
- 16
- 14
198
votes
3 answers
How do I ask apt-get to skip any interactive post-install configuration steps?
I have a server build script which uses apt-get to install packages. It then puts pre-written configuration files directly in place, so the interactive post-install configuration dialog in packages such as postfix is not needed. How do I skip this…

jl6
- 2,575
- 2
- 18
- 19