Questions tagged [connection]

A connection generally refers to a TCP/IP connection, that is established as the result of the handshake between 2 hosts.

A connection generally refers to a TCP/IP connection, that is established as the result of the handshake between 2 hosts. But can also refer to the establishment of end to end connectivity of the underlying link layer, or a database connection, or some other data-orientated communication that proceeds after an initial negotiation phase.

757 questions
142
votes
6 answers

Why do consoles sometimes hang forever when SSH connection breaks?

I've seen this with so many consoles (on Linux, Mac, ...), and with lots of different machines in many different networks. I can never pinpoint the exact reason, why this happens: All you have to do is log in to a machine via SSH. If the connection…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
102
votes
15 answers

ssh tunnel refusing connections with "channel 2: open failed"

All of a sudden (read: without changing any parameters) my netbsd virtualmachine started acting oddly. The symptoms concern ssh tunneling. From my laptop I launch: $ ssh -L 7000:localhost:7000 user@host -N -v Then, in another shell: $ irssi -c…
lorenzog
  • 2,799
  • 3
  • 20
  • 24
82
votes
15 answers

What causes SSH error: kex_exchange_identification: Connection closed by remote host?

I setup a SSH server online that is publicly accessible by anyone. Therefore, I get a lot of connections from IPs all over the world. Weirdly, none actually try to authenticate to open a session. I can myself connect and authenticate without any…
soliz
  • 922
  • 1
  • 5
  • 7
70
votes
7 answers

How to force MySQL to connect by TCP instead of a Unix socket?

I would like to analyze mysql traffic. Right now, all mysql requests are sent to the MySQL unix socket: unix 2 [ ACC ] STREAM LISTENING 3734388 15304/mysqld /var/run/mysqld/mysqld.sock I'm trying to disable that socket to…
Max
  • 3,523
  • 16
  • 53
  • 71
62
votes
5 answers

I accidentaly forbid SSH connection to a remote server... What's next?

Let's say it again, we all make mistakes, and I have just made one. A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the netstat command I saw an non-authorized connection through…
tomatoGuy
  • 621
  • 5
  • 3
61
votes
5 answers

Optimal value for Nginx worker_connections

Nginx worker_connections "sets the maximum number of simultaneous connections that can be opened by a worker process. This number includes all connections (e.g. connections with proxied servers, among others), not only connections with clients.…
Aarti
  • 689
  • 1
  • 7
  • 6
27
votes
2 answers

How do I allow outgoing connections via iptables?

I have two servers. The program on the first needs to communicate with the second on port 2194. I know its not working, because when I do: root@server1 [~]# telnet myserver2.com 2194 Trying 123.123.123.98... telnet: connect to address…
siliconpi
  • 1,807
  • 6
  • 32
  • 46
19
votes
14 answers

SQL - an error occurred during the pre-login handshake

Until yesterday evening, I was able to connect to my server from my local machine. Now, I get the following error: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL…
Rivka
  • 353
  • 2
  • 3
  • 12
17
votes
5 answers

Understanding this error: apr_socket_recv: Connection reset by peer (104)

So, if I do some benchmarking with apache benchmark (ab), and I use large numbers of requests. Then sometimes in the middle of a test I get this error. I don't even know what it means. So how can I fix it? Or is it just something that will happen if…
Matthew
  • 1,859
  • 4
  • 22
  • 32
16
votes
3 answers

Finding short-lived TCP connections owner process

Running tcpdump on local connections to an apache server, I found TCP connections being established and closed immediately every 2 seconds. How do I find which process is responsible for these? netstat -ctp did not help, the connections were too…
pmezard
  • 263
  • 1
  • 2
  • 4
15
votes
2 answers

Why are connections in FIN_WAIT2 state not closed by the Linux kernel?

I have an issue in a long-lived process called kube-proxy being part of Kubernetes. The problem is that from time to time a connection is left in FIN_WAIT2 state. $ sudo netstat -tpn | grep FIN_WAIT2 tcp6 0 0 10.244.0.1:33132 …
Adam Romanek
  • 353
  • 1
  • 3
  • 10
11
votes
4 answers

Siege: descriptor table full sock.c:119: Too many open files

I am trying to make a stress test in my own server using siege with the following command: $ siege -c 500 myweb.com/somefile.php But I get this error: [error] descriptor table full sock.c:119: Too many open files And I get too this…
shakaran
  • 356
  • 1
  • 7
  • 19
11
votes
4 answers

wget ftp connection failing after PASV command

In attempting to transfer all files from one web server ("source") to another ("destination"), the wget command is connecting via FTP, but cannnot proceed beyond the PASV command. I'm using an SSH connection to the "destination" server (a Linux box…
TheDavidJohnson
  • 113
  • 1
  • 1
  • 7
11
votes
3 answers

RDP fakeout when connectiong: does nothing, no error

Using windows RDP, I'm trying to connect to a remote machine to which I connected fine moments earlier. I had to reboot the server... Now, I type in my credentials and it looks like its working (the status text rapidly changes). "Connecting to…
FlavorScape
  • 791
  • 4
  • 10
  • 20
11
votes
3 answers

apache webserver unresponsive with server-status showing all child processes waiting for connection

My setup: I have 3 nearly identical webserver machines serving the same high loaded dynamic website with simple load balancing over dns. The service has been working for over two years with the same apache config: apache2, php5, ubuntu 8.04 linux…
Jeff
  • 423
  • 1
  • 5
  • 10
1
2 3
50 51