How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

June 13, 2017

How to fix upstream timed out (110: Connection timed out) error in Nginx

Filed under: Linux — Tags: , , , — admin @ 1:36 pm

In order to fix that you need to add

proxy_read_timeout 300;

 

September 11, 2012

putty slow to connect – SSH

Filed under: Linux — Tags: , , , , , — admin @ 10:56 am

Hello
Today , I was trying to connect to one of my server and observe that after I introduce user/password I don’t enter immediately on log on. It take some time to reach at command promt.

Well first of all I think this may happen when you have load on a server, however my server was fine, so what other reason should can be ?
Well I try to make a nslookup on my ip and this was resolved. So I have a reverse ptr.
Well I updated the resolv.conf with google nameserver and the problem disappear .

So basically just add at the beginning of /etc/resolv.conf the line bellowl:

nameserver 8.8.8.8

Part 2:
Waiting for SSH login prompt
It seems that the problem still persist. So , i try from a linux server
ssh -vvv ip_of_server
and did notice this
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found
debug1: Unspecified GSS failure. Minor code may provide more information
debug2: we did not send a packet, disable method

Ok, now I check the /etc/ssh/sshd_config and see that
GSSAPIAuthentication yes
SSAPICleanupCredentials yes

are both on yes. I disable them and now everything is ok.

Part 3
You may use also into /etc/ssh/sshd_config
UseDNS no

Powered by WordPress