Solved

Managing SSH connection close timeout after password prompt and eliminating initial password prompt delay.

Posted on 2015-02-17
7
312 Views
Last Modified: 2015-02-21
I want to connect  to remote host using
ssh XXX.XXX.XXX.XXX -l root -p XXXX

It's takes 30 seconds to prompt password in Ubuntu (as an opposite, putty client almost immediately asks password), how to eliminate initial password prompt delay?
Also, after  password promopt, it waits only 30 seconds for input, then saying connection close. How to make it 1 hour?

If you unite this two behaviours, you will decide that it's pretty much unefficient. because I must stare for 30 seconds at console.
0
Comment
Question by:Nusrat Nuriyev
  • 5
  • 2
7 Comments
 
LVL 25

Assisted Solution

by:Zephyr ICT
Zephyr ICT earned 500 total points
ID: 40614543
It could be several things client or server, you'll need to check both..

What happens sometimes is that reverse DNS is not working like it should, you could try by turning DNS requirement off in the ssh config file by adding "UseDNS no" to /etc/ssh/sshd_config

Another thing that sometimes solves these issues is by turning off GSSAPI authentication by adding the line "GSSAPIAuthentication no" to /etc/ssh/ssh_config or maybe on the client side, then it will go into  ~/.ssh/config probably.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616732
well, there is no delay before password prompt on other MAC client, I have noticed.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616746
GSSAPIAuthentication no on server side helped for eliminate delay BEFORE prompt.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Nusrat Nuriyev
ID: 40616756
Also, calling command
ssh hostname.domain -l root -p 9333

Open in new window

helped with eliminating delay BEFORE password prompt.
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616767
connection closed by XXX.XXX.XXX.XXX
AFTER password prompt still persists. How to increase wait time after password prompt?
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40616779
callling
ssh hostname.domain -l root -p XXXX

Open in new window

has not helped in eliminating delay BEFORE. Unconfirmed.
0
 
LVL 25

Accepted Solution

by:
Zephyr ICT earned 500 total points
ID: 40617567
You could try setting the "LoginGraceTime" to 0 (zero) in the ssh config file on the server, or to a more specific number of minutes, like you want ...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now