SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home

server

Martin Hope
user9517
Asked: 2015-09-29 04:13:24 +0800 CST

What causes the 'Connection Refused' message?

  • 144

This is a Canonical Question about Connection Refused

We see a lot of questions to the effect

When I try to connect to a system I get a message

Connection refused

Why is this ?

networking connection-refused
  • 2 Answers
  • 893268 Views
Martin Hope
Adam Matan
Asked: 2015-01-24 14:13:21 +0800 CST

Displaying a remote SSL certificate details using CLI tools

  • 373

In Chrome, clicking on the green HTTPS lock icon opens a window with the certificate details:

enter image description here

When I tried the same with cURL, I got only some of the information:

$ curl -vvI https://gnupg.org
* Rebuilt URL to: https://gnupg.org/
* Hostname was NOT found in DNS cache
*   Trying 217.69.76.60...
* Connected to gnupg.org (217.69.76.60) port 443 (#0)
* TLS 1.2 connection using TLS_DHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate: gnupg.org
* Server certificate: Gandi Standard SSL CA
* Server certificate: UTN-USERFirst-Hardware
> HEAD / HTTP/1.1
> User-Agent: curl/7.37.1
> Host: gnupg.org
> Accept: */*

Any idea how to get the full certificate information form a command line tool (cURL or other)?

ssl
  • 14 Answers
  • 611799 Views
Martin Hope
Eric Leschinski
Asked: 2012-11-17 20:51:50 +0800 CST

Why is my crontab not working, and how can I troubleshoot it?

  • 361
Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted.

This is a Canonical Question about using cron & crontab.

You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.

The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below. This addresses the cron system with the crontab highlighted.

linux cron
  • 7 Answers
  • 795689 Views
Martin Hope
kenny
Asked: 2012-04-06 13:01:27 +0800 CST

Which ports do I need to open in the firewall to use NFS?

  • 100

I'm running Ubuntu 11.10 - setting up NFS to share a directory among many other servers. Which ports are required to be opened on the firewall?

firewall ubuntu nfs
  • 8 Answers
  • 656697 Views
Martin Hope
ripper234
Asked: 2012-03-22 03:16:58 +0800 CST

Can you pass user/pass for HTTP Basic Authentication in URL parameters?

  • 228

I believe this is not possible, but someone I know insisted that it works. I don't even know what parameters to try, and I haven't found this documented anywhere.

I tried http://myserver.com/~user=username&password=mypassword but it doesn't work.

Can you confirm that it's not in fact possible to pass the user/pass via HTTP parameters (GET or POST)?

http authentication http-basic-authentication
  • 5 Answers
  • 1195710 Views
Martin Hope
chubbyk
Asked: 2011-10-05 11:59:53 +0800 CST

How to pass password to scp command used in bash script? [duplicate]

  • 58
This question already has answers here:
Closed 10 years ago.

Possible Duplicate:
Connect through SSH and type in password automatically, without using a public key

I have a bash script that makes dump of DB then copies file from one server to another but it always asks for password before connection.

scp file.tar.gz [email protected]:/backup

Is there a way to pass password directly into script ?

bash password scp
  • 6 Answers
  • 681259 Views
Martin Hope
James Anderson
Asked: 2011-09-08 09:24:24 +0800 CST

Check if port is open or closed on a Linux server?

  • 278

How can I check if a port is listening on a Linux server?

linux port telnet
  • 7 Answers
  • 1235909 Views
Martin Hope
Kyle Brandt
Asked: 2011-07-28 13:47:05 +0800 CST

How do I force sync the time on Windows Workstation or Server?

  • 118

What is the command to sync a Windows workstation or server to its configured time source?

windows time
  • 13 Answers
  • 1024505 Views
Martin Hope
psp
Asked: 2011-06-30 03:43:19 +0800 CST

How to Unban an IP properly with Fail2Ban

  • 277

I'm using Fail2Ban on a server and I'm wondering how to unban an IP properly.

I know I can work with IPTables directly: iptables -D fail2ban-ssh <number>

But is there not a way to do it with the fail2ban-client?

In the manuals it states something like: fail2ban-client get ssh actionunban <IP>. But that doesn't work.

Also, I don't want to /etc/init.d/fail2ban restart as that would lose all the bans in the list.

firewall iptables fail2ban
  • 15 Answers
  • 629504 Views
Martin Hope
kernel
Asked: 2011-04-29 20:24:45 +0800 CST

Can scp copy directories recursively?

  • 751

Currently I can only copy a single .tar file. But how can I copy directories recursively with scp?

linux scp
  • 9 Answers
  • 992982 Views
Martin Hope
systempuntoout
Asked: 2011-04-02 05:53:26 +0800 CST

How do I convert a .cer certificate to .pem?

  • 173

I have a .cer certificate and I would like to convert it to the .pem format.

If I remember correctly, I used to be able to convert them by exporting the .cer in Base64, then renaming the file to .pem .

How do I convert a .cer certificate to .pem?

ssl-certificate convert
  • 5 Answers
  • 621107 Views
Martin Hope
Eonil
Asked: 2011-03-02 03:07:12 +0800 CST

How to automate SSH login with password?

  • 671

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration.

ex)

echo password | ssh id@server

This doesn't work.

I remember I did this with some tricks somebody guided me, but I can't remember now the trick I used...

password ssh automation
  • 10 Answers
  • 1998510 Views
Martin Hope
Svish
Asked: 2011-01-22 05:56:41 +0800 CST

VirtualBox: How to set up networking so both host and guest can access internet and talk to each other

  • 185

I was wondering if someone could give me a simple guide on how to set up virtual networking in VirtualBox (4.0.2) so that the following scenarios work:

  • Both Host and Guest can access the Internet
  • Host can ping Guest and vice versa
  • Host can access, for example, an apache web server running on Guest and vice versa

I've been fiddling around with the various Network Adapters available in the settings for my Guest, but I'm just not able to figure it out. Is there anyone that can help me out here?

The host is running Windows 7 32-bit and the guest is running Ubuntu 10.10 32-bit.

networking virtualbox
  • 5 Answers
  • 629325 Views
Martin Hope
binaryorganic
Asked: 2010-10-26 08:45:39 +0800 CST

How do I tell Git for Windows where to find my private RSA key?

  • 543

My Git setup runs fine on Linux, but when I try to set things up under Windows (using Git for Windows and TortoiseGit), I don't know where to put my private SSH key (or, better still, how to tell ssh where it's located). I'm using the standard ssh.exe option during installation of Git for Windows. The setup runs fine if I allow password authentication (in lieu of RSA) on the server.

windows ssh rsa git private-key
  • 30 Answers
  • 1076523 Views
Martin Hope
Galen
Asked: 2010-10-12 17:58:12 +0800 CST

How do you restart php-fpm?

  • 183
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.

I need to reload my php.ini and there's nothing in the help dialog about restarting it.

php nginx php5 php-fpm
  • 18 Answers
  • 994263 Views
Martin Hope
Chris McKee
Asked: 2010-07-21 14:57:37 +0800 CST

How do I add Access-Control-Allow-Origin in NGINX?

  • 229

How do I set the Access-Control-Allow-Origin header so I can use web-fonts from my subdomain on my main domain?


Notes:

You'll find examples of this and other headers for most HTTP servers in the HTML5BP Server Configs projects https://github.com/h5bp/server-configs

nginx cors
  • 8 Answers
  • 775531 Views
Martin Hope
Allen
Asked: 2010-04-09 05:43:08 +0800 CST

How can I figure out my LDAP connection string?

  • 120

We're on a corporate network thats running active directory and we'd like to test out some LDAP stuff (active directory membership provider, actually) and so far, none of us can figure out what our LDAP connection string is. Does anyone know how we can go about finding it? The only thing we know is the domain that we're on.

active-directory ldap connection-strings
  • 8 Answers
  • 642411 Views
Martin Hope
grigoryvp
Asked: 2010-04-09 02:22:10 +0800 CST

How to check sshd log?

  • 184

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 problem. I have examined /etc/ssh/sshd_config and it have

SyslogFacility AUTH
LogLevel INFO

Ok. I'm looking at /var/log/auth.log and... it's empty O_O. Changing Loglevel to VERBOSE helps nothing - auth.log is still empty. Any hints how I can check sshd log?

ssh
  • 8 Answers
  • 850173 Views
Martin Hope
neha soni
Asked: 2010-04-04 03:15:41 +0800 CST

How to start/stop iptables on Ubuntu?

  • 106

How can I start/stop the iptables service on Ubuntu?

I have tried

 service iptables stop

but it is giving "unrecognized service".

Why is it doing so? Is there any other method?

ubuntu iptables
  • 12 Answers
  • 697732 Views
Martin Hope
Thierry Lam
Asked: 2010-02-06 20:54:20 +0800 CST

What's the default superuser username/password for postgres after a new install?

  • 464

I have just installed postgres 8.4 on Ubuntu 9.10 and it has never asked me to create a superuser. Is there a default superuser and its password? If not, how do I create a new one?

user-management postgresql
  • 5 Answers
  • 1138706 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve